Class: Discorb::ApplicationCommand::Command::ChatInputCommand
- Inherits:
-
Discorb::ApplicationCommand::Command
- Object
- DiscordModel
- Discorb::ApplicationCommand::Command
- Discorb::ApplicationCommand::Command::ChatInputCommand
- Defined in:
- lib/discorb/app_command/command.rb
Overview
Represents the slash command.
Instance Attribute Summary collapse
-
#description -> Hash{String => String}
readonly
The description of the command.
-
#options -> Hash{String => Hash}
readonly
The options of the command.
Attributes inherited from Discorb::ApplicationCommand::Command
#block, #default_permission, #dm_permission, #guild_ids, #name, #type, #type_raw
Instance Method Summary collapse
-
#to_s -> String
Returns the commands name.
Methods inherited from DiscordModel
Instance Attribute Details
#description -> Hash{String => String} (readonly)
Returns The description of the command.
96 97 98 |
# File 'lib/discorb/app_command/command.rb', line 96 def description @description end |
#options -> Hash{String => Hash} (readonly)
Returns The options of the command.
98 99 100 |
# File 'lib/discorb/app_command/command.rb', line 98 def @options end |
Instance Method Details
#to_s -> String
Returns the commands name.
143 144 145 |
# File 'lib/discorb/app_command/command.rb', line 143 def to_s "#{@parent} #{@name["default"]}".strip end |