Class: Discordrb::Events::MessageIDEvent

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

Overview

A subset of MessageEvent that only contains a message ID and a channel

Direct Known Subclasses

MessageDeleteEvent

Instance Attribute Summary collapse

Attributes included from Respondable

#channel

Attributes inherited from Event

#bot

Method Summary

Methods included from Respondable

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

Instance Attribute Details

#idInteger (readonly)

Returns the ID associated with this event.

Returns:

  • (Integer)

    the ID associated with this event


265
266
267
# File 'lib/discordrb/events/message.rb', line 265

def id
  @id
end