From 064abe7e24f915c9a12ca5363b43b3ce18e7f25d Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Fri, 16 Feb 2024 18:26:00 +0100 Subject: [PATCH] save emoji identifier without name --- shared.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared.js b/shared.js index ceea8a5..c8264af 100644 --- a/shared.js +++ b/shared.js @@ -66,7 +66,7 @@ const saveMessageData = async (id, role, emoji) => { ); // Create database entry for pair - await RoleEmojiPair.create({ message: id, role: role.id, emoji }); + await RoleEmojiPair.create({ message: id, role: role.id, emoji: emoji.replace(/:(\s*[^:]*\s*):/, ":_:") }); }; /**