mirror of
https://github.com/xHyroM/bun-discord-bot.git
synced 2024-12-22 12:11:06 +01:00
fix: react with custom emoji correctly
This commit is contained in:
parent
53c799c495
commit
2efd7a210a
1 changed files with 2 additions and 1 deletions
|
@ -33,7 +33,8 @@ function handleBunOnlyChannel(message: Message): boolean {
|
|||
|
||||
// 1% chance to react with a random bun emoji
|
||||
if (Math.floor(Math.random() * 100) === 0) {
|
||||
message.react(getRandomBunEmoji().id, true);
|
||||
const emoji = getRandomBunEmoji();
|
||||
message.react(`${emoji.name}:${emoji.id}`, true);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue