Moderation
addReactions
$addReactions
The $addReactions[] function adds reactions to the response message sent by the bot in the current command.
Syntax
bdfd
$addReactions[emoji1;emoji2;...]
Syntax
$addReactions[emoji1;emoji2;...]
Parameters
| Parameter | Description |
|---|---|
emoji1;emoji2;... |
List of emojis separated by ;. Supports Unicode and custom emojis. |
Return value
This function does not return a value. The reactions are added to the botβs response message.
Behavior
- Reactions are added in the specified order.
- The bot must have the permission
ADD_REACTIONSin the channel. - Custom emojis must be accessible to the bot (present on a shared server).
- If an emoji is invalid, subsequent reactions may not be added.
Examples
Reactions to a poll
$title[Poll]
$description[$message]
$addReactions[π;π;π€·]
$sendMessage[]
Confirmation reactions
$if[$checkContains[$message;!delete]==true]
$title[Confirmation]
$description[Are you sure you want to delete?]
$addReactions[β
;β]
$sendMessage[]
$endif
Reactions to an announcement
$title[π’ Announcement]
$description[$noMentionMessage]
$addReactions[π’;π]
$sendMessage[]
Notes
$addReactions[]applies to the response message of the bot (the one sent by$sendMessage[]).- To add reactions to the userβs command message, use
$addCmdReactions[]. - For specific messages, use
$addMessageReactions[].