Class: Discorb::Gateway::ReactionRemoveAllEvent
- Inherits:
-
GatewayEvent
- Object
- GatewayEvent
- Discorb::Gateway::ReactionRemoveAllEvent
- Defined in:
- lib/discorb/gateway.rb
Overview
Represents a MESSAGE_REACTION_REMOVE_ALL
event.
Instance Attribute Summary collapse
- #channel -> nil, Discorb::Channel readonly
-
#channel_id -> Discorb::Snowflake
readonly
The ID of the channel the message was sent in.
- #guild -> nil, Discorb::Guild readonly
-
#guild_id -> Discorb::Snowflake
readonly
The ID of the guild the message was sent in.
- #message -> nil, Discorb::Message readonly
-
#message_id -> Discorb::Snowflake
readonly
The ID of the message.
Instance Method Summary collapse
-
#fetch_message(force: false) -> Async::Task<Discorb::Message>
Fetch the message.
Methods inherited from GatewayEvent
Instance Attribute Details
#channel -> nil, Discorb::Channel (readonly)
Note:
This method returns an object from client cache. it will return nil
if the object is not in cache.
177 178 179 |
# File 'lib/discorb/gateway.rb', line 177 def channel @channel end |
#channel_id -> Discorb::Snowflake (readonly)
Returns The ID of the channel the message was sent in.
170 171 172 |
# File 'lib/discorb/gateway.rb', line 170 def channel_id @channel_id end |
#guild -> nil, Discorb::Guild (readonly)
Note:
This method returns an object from client cache. it will return nil
if the object is not in cache.
180 181 182 |
# File 'lib/discorb/gateway.rb', line 180 def guild @guild end |
#guild_id -> Discorb::Snowflake (readonly)
Returns The ID of the guild the message was sent in.
174 175 176 |
# File 'lib/discorb/gateway.rb', line 174 def guild_id @guild_id end |
#message -> nil, Discorb::Message (readonly)
Note:
This method returns an object from client cache. it will return nil
if the object is not in cache.
183 184 185 |
# File 'lib/discorb/gateway.rb', line 183 def @message end |
#message_id -> Discorb::Snowflake (readonly)
Returns The ID of the message.
172 173 174 |
# File 'lib/discorb/gateway.rb', line 172 def @message_id end |
Instance Method Details
#fetch_message(force: false) -> Async::Task<Discorb::Message>
Fetch the message. If message is cached, it will be returned.
210 211 212 213 214 215 216 |
# File 'lib/discorb/gateway.rb', line 210 def (force: false) Async do next @message if !force && @message @message = @channel.(@message_id).wait end end |