Skip to content
Moderation addCmdReactions

$addCmdReactions

The $addCmdReactions[] function adds reactions directly to the user’s message that triggered the command.

Syntax

bdfd
$addCmdReactions[emoji1;emoji2;...]

Syntax

$addCmdReactions[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 command message.

Behavior

  • Unlike $addReactions[], this function targets the trigger message (the user’s message).
  • Useful for giving quick visual feedback without sending a message.
  • The bot must have the permission ADD_REACTIONS in the channel.

Examples

Simple feedback

$addCmdReactions[βœ…]
$suppressErrors[Action completed.]

Conditional feedback

$if[$checkContains[$userPerms;Administrator]==true]
  $addCmdReactions[βœ…]
  $ban[Moderation]
$else
  $addCmdReactions[❌]
  $ephemeral[You do not have permission.]
$endif

Progress indicator

$addCmdReactions[⏳]
$wait[2]
$removeReaction[$channelID;$messageID;⏳]
$addCmdReactions[βœ…]

Notes

  • $addCmdReactions[] only works if the trigger message still exists.
  • Does not require sending a response message.
  • Ideal for quick commands where a simple emoji is enough for confirmation.