Class: Discorb::Gateway::TypingStartEvent
- Inherits:
-
GatewayEvent
- Object
- GatewayEvent
- Discorb::Gateway::TypingStartEvent
- Defined in:
- lib/discorb/gateway.rb
Overview
Represents a TYPING_START
event.
Instance Attribute Summary collapse
- #channel -> nil, Discorb::Channel readonly
- #fired_by -> nil, ... (also: #from) readonly
- #guild -> nil, Discorb::Guild readonly
- #member -> nil, Discorb::Member readonly
- #user -> nil, Discorb::User readonly
-
#user_id -> Discorb::Snowflake
readonly
The ID of the channel the user is typing in.
Instance Attribute Details
#channel -> nil, Discorb::Channel (readonly)
Note:
This method returns an object from client cache. it will return nil
if the object is not in cache.
|
# File 'lib/discorb/gateway.rb', line 371
|
#fired_by -> nil, ... (readonly) Also known as: from
Note:
This method returns an object from client cache. it will return nil
if the object is not in cache.
|
# File 'lib/discorb/gateway.rb', line 371
|
#guild -> nil, Discorb::Guild (readonly)
Note:
This method returns an object from client cache. it will return nil
if the object is not in cache.
|
# File 'lib/discorb/gateway.rb', line 371
|
#member -> nil, Discorb::Member (readonly)
Note:
This method returns an object from client cache. it will return nil
if the object is not in cache.
369 370 371 |
# File 'lib/discorb/gateway.rb', line 369 def member @member end |
#user -> nil, Discorb::User (readonly)
Note:
This method returns an object from client cache. it will return nil
if the object is not in cache.
|
# File 'lib/discorb/gateway.rb', line 371
|
#user_id -> Discorb::Snowflake (readonly)
Returns The ID of the channel the user is typing in.
366 367 368 |
# File 'lib/discorb/gateway.rb', line 366 def user_id @user_id end |