save emoji identifier without name

This commit is contained in:
Baipyrus 2024-02-16 18:26:00 +01:00
parent 5c4192eb4b
commit 064abe7e24

View File

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