class Discordrb::Events::ReactionRemoveAllEvent
Event
raised when somebody removes all reactions from a message
Public Class Methods
new(data, bot)
click to toggle source
# File lib/discordrb/events/reactions.rb, line 85 def initialize(data, bot) @bot = bot @message_id = data['message_id'].to_i @channel_id = data['channel_id'].to_i end
Public Instance Methods
channel()
click to toggle source
@return [Channel] the channel where the removal occurred.
# File lib/discordrb/events/reactions.rb, line 93 def channel @channel ||= @bot.channel(@channel_id) end
message()
click to toggle source
@return [Message] the message all reactions were removed from.
# File lib/discordrb/events/reactions.rb, line 98 def message @message ||= channel.load_message(@message_id) end