Class: Discorb::Gateway::TypingStartEvent

Inherits:
GatewayEvent show all
Defined in:
lib/discorb/gateway_events.rb

Overview

Represents a TYPING_START event.

Instance Attribute Summary collapse

Method Summary

Methods inherited from GatewayEvent

#inspect

Instance Attribute Details

#channelnil, Discorb::Channel (readonly)

Note:

This method returns an object from client cache. it will return nil if the object is not in cache.

Returns:

  • (nil)

    The object wasn't cached.

  • (Discorb::Channel)

    The channel the user is typing in.



# File 'lib/discorb/gateway_events.rb', line 469

#guildnil, Discorb::Guild (readonly)

Note:

This method returns an object from client cache. it will return nil if the object is not in cache.

Returns:

  • (nil)

    The object wasn't cached.

  • (Discorb::Guild)

    The guild the user is typing in.



# File 'lib/discorb/gateway_events.rb', line 469

#usernil, ... (readonly) Also known as: member

Note:

This method returns an object from client cache. it will return nil if the object is not in cache.

Returns:



# File 'lib/discorb/gateway_events.rb', line 469

#user_idDiscorb::Snowflake (readonly)

Returns The ID of the channel the user is typing in.

Returns:



467
468
469
# File 'lib/discorb/gateway_events.rb', line 467

def user_id
  @user_id
end