Class: RubyCord::Command::SlashCommand
- Inherits:
-
RubyCord::Command
- Object
- DiscordModel
- RubyCord::Command
- RubyCord::Command::SlashCommand
- Defined in:
- lib/rubycord/command/slash_command.rb
Constant Summary
Constants inherited from RubyCord::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 RubyCord::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 RubyCord::Command
Methods inherited from DiscordModel
Instance Attribute Details
#description ⇒ Hash{String => String} (readonly)
Returns The description of the command.
8 9 10 |
# File 'lib/rubycord/command/slash_command.rb', line 8 def description @description end |
#options ⇒ Hash{String => Hash} (readonly)
Returns The options of the command.
10 11 12 |
# File 'lib/rubycord/command/slash_command.rb', line 10 def @options end |
Instance Method Details
#to_s ⇒ String
Returns the commands name.
55 56 57 |
# File 'lib/rubycord/command/slash_command.rb', line 55 def to_s "#{@parent} #{@name["default"]}".strip end |