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) ⇒ MessageEvent
constructor
A new instance of MessageEvent.
- #send_message(content) ⇒ Object (also: #send, #message, #respond)
- #timestamp ⇒ Object
Constructor Details
#initialize(message) ⇒ MessageEvent
Returns a new instance of MessageEvent.
7 8 9 |
# File 'lib/discordrb/events/message.rb', line 7 def initialize() = end |
Instance Method Details
#author ⇒ Object Also known as: user
11 |
# File 'lib/discordrb/events/message.rb', line 11 def ; .; end |
#channel ⇒ Object
13 |
# File 'lib/discordrb/events/message.rb', line 13 def channel; .channel; end |
#content ⇒ Object Also known as: text
14 |
# File 'lib/discordrb/events/message.rb', line 14 def content; .content; end |
#send_message(content) ⇒ Object Also known as: send, message, respond
18 |
# File 'lib/discordrb/events/message.rb', line 18 def (content); .(content); end |
#timestamp ⇒ Object
16 |
# File 'lib/discordrb/events/message.rb', line 16 def ; .; end |