Class: Discordrb::Events::TypingEvent
- Includes:
- Respondable
- Defined in:
- lib/discordrb/events/typing.rb
Overview
Event raised when a user starts typing
Instance Attribute Summary collapse
-
#channel ⇒ Channel
readonly
The channel on which a user started typing.
-
#timestamp ⇒ Time
readonly
When the typing happened.
-
#user ⇒ User, ...
(also: #member)
readonly
The user that started typing.
Attributes inherited from Event
Method Summary
Methods included from Respondable
#<<, #drain, #drain_into, #send_embed, #send_message, #send_message!, #send_temporary_message
Instance Attribute Details
#channel ⇒ Channel (readonly)
Returns the channel on which a user started typing.
11 12 13 |
# File 'lib/discordrb/events/typing.rb', line 11 def channel @channel end |
#timestamp ⇒ Time (readonly)
Returns when the typing happened.
18 19 20 |
# File 'lib/discordrb/events/typing.rb', line 18 def @timestamp end |
#user ⇒ User, ... (readonly) Also known as: member
Returns the user that started typing.
14 15 16 |
# File 'lib/discordrb/events/typing.rb', line 14 def user @user end |