Class: Discordrb::Events::TypingEvent

Inherits:
Event
  • Object
show all
Includes:
Respondable
Defined in:
lib/discordrb/events/typing.rb

Overview

Event raised when a user starts typing

Instance Attribute Summary collapse

Attributes inherited from Event

#bot

Method Summary

Methods included from Respondable

#<<, #drain, #drain_into, #send_embed, #send_message, #send_message!, #send_temporary_message

Instance Attribute Details

#channelChannel (readonly)

Returns the channel on which a user started typing.

Returns:

  • (Channel)

    the channel on which a user started typing.



11
12
13
# File 'lib/discordrb/events/typing.rb', line 11

def channel
  @channel
end

#timestampTime (readonly)

Returns when the typing happened.

Returns:

  • (Time)

    when the typing happened.



18
19
20
# File 'lib/discordrb/events/typing.rb', line 18

def timestamp
  @timestamp
end

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

Returns the user that started typing.

Returns:



14
15
16
# File 'lib/discordrb/events/typing.rb', line 14

def user
  @user
end