Class: Rubycord::Commands::CommandEvent
- Inherits:
-
Events::MessageEvent
- Object
- Events::Event
- Events::MessageEvent
- Rubycord::Commands::CommandEvent
- Defined in:
- lib/rubycord/commands/events.rb
Overview
Extension of MessageEvent for commands that contains the command called and makes the bot readable
Instance Attribute Summary collapse
-
#bot ⇒ Object
readonly
Returns the value of attribute bot.
-
#command ⇒ Object
Returns the value of attribute command.
Attributes inherited from Events::MessageEvent
#author, #channel, #content, #file, #file_spoiler, #filename, #message, #saved_message, #server, #timestamp
Attributes included from Events::Respondable
Method Summary
Methods inherited from Events::MessageEvent
#attach_file, #detach_file, #from_bot?, #initialize, #send_file, #voice
Methods included from Events::Respondable
#<<, #drain, #drain_into, #send_embed, #send_message, #send_temporary_message
Constructor Details
This class inherits a constructor from Rubycord::Events::MessageEvent
Instance Attribute Details
#bot ⇒ Object (readonly)
Returns the value of attribute bot.
6 7 8 |
# File 'lib/rubycord/commands/events.rb', line 6 def bot @bot end |
#command ⇒ Object
Returns the value of attribute command.
7 8 9 |
# File 'lib/rubycord/commands/events.rb', line 7 def command @command end |