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*):/, ":_:") }); }; /**