Awaited reactions

(for premium bots)

Awaited reactions are similar to awaited commands. Unlike awaited commands which wait for a message, they wait for a reaction instead.

end result

📝 Reaction roles are not possible at the moment since awaited reactions can only be triggered by the author and they expire whenever the bot goes offline.

Getting Started

To create an awaited reaction command, following functions and callback are used :

$awaitReactions[]

This function is used to await an reaction command.

Usage

$awaitReactions[<Command name;Reaction>;...]
  • command name - It's the name which will be used inside $reaction[] callback.
  • reaction - It awaits the given emoji. Emoji must be either in Unicode or in discord emoji id format.

📝 You can group reactions by specifying more "command names" and "reactions" in $awaitReactions[].

⚠️ In group reactions, when one reaction is used, the others stop working i.e let's say, a command awaits two reactions (✔️ & ❌). If the user reacts ✔️ then ❌ stops working.

$reaction[]

$reaction[] is a callback. It gets triggered whenever an awaited reaction occurs.

Usage

$reaction[name]
  • name - It is the value which is used in "command name" argument of $awaitReactions[].

$usedEmoji

This function is used to return the emoji which was triggered in $reaction[] command.

Usage

$usedEmoji

Example

Screenshot_20220809_194823 Screenshot_20220809_194754 Screenshot_20220809_194805 Screenshot_20220809_194642