Class: OnyxCord::Events::ReactionRemoveAllEvent
- Includes:
- Respondable
- Defined in:
- lib/onyxcord/events/reactions/clear.rb
Overview
Event raised when somebody removes all reactions from a message
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Event
Instance Method Summary collapse
-
#channel ⇒ Channel
The channel where the removal occurred.
-
#message ⇒ Message
The message all reactions were removed from.
Methods included from Respondable
#<<, #drain, #drain_into, #send_embed, #send_message, #send_message!, #send_temporary_message
Instance Method Details
#channel ⇒ Channel
Returns 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 |
#message ⇒ Message
Returns the message all reactions were removed from.
28 29 30 |
# File 'lib/onyxcord/events/reactions/clear.rb', line 28 def @message ||= channel.(@message_id) end |