Skip to content

class Tourmaline::BotCommand
inherits Reference #

This object represents a bot command.

Included modules

JSON::Serializable

Constructors#

.new(command, description) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#command : String #

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

View source

#command=(command : String) #

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

View source

#description : String #

Description of the command; 1-256 characters.

View source

#description=(description : String) #

Description of the command; 1-256 characters.

View source