This repository has been archived by the owner on Jan 18, 2022. It is now read-only.
forked from DevSpen/d.js-BDScript-Documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# $addMessageReactions | ||
Adds reaction(s) to a message. | ||
|
||
## Usage | ||
```$addMessageReactions[channelID;messageID;emoji1;(optional) emoji2;(optional) etc]``` | ||
|
||
### Breakdown | ||
`channelID` - The channel ID of the message the bot will react to. | ||
|
||
`messageID` - The message ID of the message the bot will react to. | ||
|
||
`emoji1` - The emoji the bot reacts to the message with. Accepts unicode emojis and emoji ids. | ||
|
||
`emoji2` - The second emoji the bot reacts with. Optional. | ||
|
||
`etc` - You can react with up to 20 emojis. Additional emoji fields are optional. | ||
|
||
## Example | ||
``` | ||
bot.command({ | ||
type: "command", | ||
name: "clown", | ||
code: `$addMessageReactions[$channelID;$messageID;🤡] // This would react to the author's message. | ||
$username is a clown` | ||
}) | ||
``` |