Class: Discorb::Command::Command::SlashCommand
- Inherits:
-
Discorb::Command::Command
- Object
- DiscordModel
- Discorb::Command::Command
- Discorb::Command::Command::SlashCommand
- Defined in:
- lib/discorb/command.rb
Overview
Represents the slash command.
Instance Attribute Summary collapse
-
#description -> String
readonly
The description of the command.
-
#options -> Hash{String => Hash}
readonly
The options of the command.
Attributes inherited from Discorb::Command::Command
#block, #guild_ids, #id_map, #name, #type, #type_raw
Instance Method Summary collapse
-
#to_s -> String
Returns the commands name.
Methods inherited from DiscordModel
Instance Attribute Details
#description -> String (readonly)
Returns The description of the command.
171 172 173 |
# File 'lib/discorb/command.rb', line 171 def description @description end |
#options -> Hash{String => Hash} (readonly)
Returns The options of the command.
173 174 175 |
# File 'lib/discorb/command.rb', line 173 def @options end |
Instance Method Details
#to_s -> String
Returns the commands name.
194 195 196 |
# File 'lib/discorb/command.rb', line 194 def to_s (@parent + " " + @name).strip end |