Class: OnyxCord::Events::ReactionRemoveAllEvent

Inherits:
Event
  • Object
show all
Includes:
Respondable
Defined in:
lib/onyxcord/events/reactions/clear.rb

Overview

Event raised when somebody removes all reactions from a message

Direct Known Subclasses

ReactionRemoveEmojiEvent

Instance Attribute Summary

Attributes inherited from Event

#bot

Instance Method Summary collapse

Methods included from Respondable

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

Instance Method Details

#channelChannel

Returns the channel where the removal occurred.

Returns:

  • (Channel)

    the channel where the removal occurred.



23
24
25
# File 'lib/onyxcord/events/reactions/clear.rb', line 23

def channel
  @channel ||= @bot.channel(@channel_id)
end

#messageMessage

Returns the message all reactions were removed from.

Returns:

  • (Message)

    the message all reactions were removed from.



28
29
30
# File 'lib/onyxcord/events/reactions/clear.rb', line 28

def message
  @message ||= channel.load_message(@message_id)
end