class Tourmaline::BotCommand

Overview

This object represents a bot command.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(command : String, description : String) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def command : String #

Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and underscores.


[View source]
def command=(command : String) #

Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and underscores.


[View source]
def description : String #

Description of the command; 1-256 characters.


[View source]
def description=(description : String) #

Description of the command; 1-256 characters.


[View source]