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_message!, #send_temporary_message

Instance Attribute Details

#idInteger (readonly)

Returns the ID associated with this event.

Returns:

  • (Integer)

    the ID associated with this event



307
308
309
# File 'lib/discordrb/events/message.rb', line 307

def id
  @id
end

#serverServer? (readonly)

Returns the server associated with this event.

Returns:

  • (Server, nil)

    the server associated with this event



310
311
312
# File 'lib/discordrb/events/message.rb', line 310

def server
  @server
end