Class: Discordrb::Commands::CommandEvent

Inherits:
Events::MessageEvent show all
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

Attributes inherited from Events::MessageEvent

#author, #channel, #content, #file, #file_spoiler, #filename, #message, #saved_message, #server, #timestamp

Attributes included from Events::Respondable

#channel

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

#botObject (readonly)

Returns the value of attribute bot.



8
9
10
# File 'lib/discordrb/commands/events.rb', line 8

def bot
  @bot
end

#commandObject

Returns the value of attribute command.



9
10
11
# File 'lib/discordrb/commands/events.rb', line 9

def command
  @command
end