Class: Discordrb::Events::MessageEvent
- Inherits:
-
Object
- Object
- Discordrb::Events::MessageEvent
- Defined in:
- lib/discordrb/events/message.rb
Instance Method Summary collapse
- #author ⇒ Object (also: #user)
- #channel ⇒ Object
- #content ⇒ Object (also: #text)
-
#initialize(message, bot) ⇒ MessageEvent
constructor
A new instance of MessageEvent.
- #send_message(content) ⇒ Object (also: #send, #message, #respond)
- #timestamp ⇒ Object
Constructor Details
#initialize(message, bot) ⇒ MessageEvent
Returns a new instance of MessageEvent.
7 8 9 10 |
# File 'lib/discordrb/events/message.rb', line 7 def initialize(, bot) @bot = bot = end |
Instance Method Details
#author ⇒ Object Also known as: user
12 |
# File 'lib/discordrb/events/message.rb', line 12 def ; .; end |
#channel ⇒ Object
14 |
# File 'lib/discordrb/events/message.rb', line 14 def channel; .channel; end |
#content ⇒ Object Also known as: text
15 |
# File 'lib/discordrb/events/message.rb', line 15 def content; .content; end |
#send_message(content) ⇒ Object Also known as: send, message, respond
19 |
# File 'lib/discordrb/events/message.rb', line 19 def (content); .(content); end |
#timestamp ⇒ Object
17 |
# File 'lib/discordrb/events/message.rb', line 17 def ; .; end |