generated from Baipyrus/DiscordJS-Template
save emoji identifier without name
This commit is contained in:
parent
5c4192eb4b
commit
064abe7e24
@ -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*):/, ":_:") });
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user