Class: Discordrb::Commands::CommandEvent
- Inherits:
-
Events::MessageEvent
- Object
- Events::Event
- Events::MessageEvent
- Discordrb::Commands::CommandEvent
- Defined in:
- lib/discordrb/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 Discordrb::Events::MessageEvent
Instance Attribute Details
#bot ⇒ Object (readonly)
Returns the value of attribute bot.
8 9 10 |
# File 'lib/discordrb/commands/events.rb', line 8 def bot @bot end |
#command ⇒ Object
Returns the value of attribute command.
9 10 11 |
# File 'lib/discordrb/commands/events.rb', line 9 def command @command end |