Class: Discordrb::Events::MessageIDEvent

Inherits:
Object
  • 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, MessageEditEvent

Instance Attribute Summary collapse

Instance Attribute Details

#channelChannel (readonly)

Returns the channel in which this event occurred.

Returns:

  • (Channel)

    the channel in which this event occurred



105
106
107
# File 'lib/discordrb/events/message.rb', line 105

def channel
  @channel
end

#idInteger (readonly)

Returns the ID associated with this event.

Returns:

  • (Integer)

    the ID associated with this event



102
103
104
# File 'lib/discordrb/events/message.rb', line 102

def id
  @id
end