Class: Discordrb::Events::MessageIDEvent

Inherits:
Event
  • Object
show all
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 inherited from Event

#bot

Instance Attribute Details

#channelChannel (readonly)

Returns the channel in which this event occurred.

Returns:

  • (Channel)

    the channel in which this event occurred



160
161
162
# File 'lib/discordrb/events/message.rb', line 160

def channel
  @channel
end

#idInteger (readonly)

Returns the ID associated with this event.

Returns:

  • (Integer)

    the ID associated with this event



157
158
159
# File 'lib/discordrb/events/message.rb', line 157

def id
  @id
end