Method: Discordrb::Message#await_reaction
- Defined in:
- lib/discordrb/data/message.rb
#await_reaction(key, attributes = {}, &block) ⇒ Object
Deprecated.
Will be changed to blocking behavior in v4.0. Use #await_reaction! instead.
Add an Await for a reaction to be added on this message.
243 244 245 |
# File 'lib/discordrb/data/message.rb', line 243 def await_reaction(key, attributes = {}, &block) @bot.add_await(key, Discordrb::Events::ReactionAddEvent, { message: @id }.merge(attributes), &block) end |