From 2efd7a210a872274b8944ae06bea45b9d941b99e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl=20=28xHyroM=29?= Date: Sat, 9 Mar 2024 17:23:43 +0100 Subject: [PATCH] fix: react with custom emoji correctly --- src/listeners/message_create.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/listeners/message_create.tsx b/src/listeners/message_create.tsx index 428da7a..9bb8735 100644 --- a/src/listeners/message_create.tsx +++ b/src/listeners/message_create.tsx @@ -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; }