fix: react with custom emoji correctly

This commit is contained in:
Jozef Steinhübl 2024-03-09 17:23:43 +01:00
parent 53c799c495
commit 2efd7a210a
No known key found for this signature in database
GPG key ID: E944BC293F5FF7E7

View file

@ -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;
}