Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Commit

Permalink
Create addMessageReactions.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DevSpen authored May 1, 2021
1 parent 96cff95 commit 4f1d14d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions functions/addMessageReactions.md
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`
})
```

0 comments on commit 4f1d14d

Please sign in to comment.