3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-14 21:31:50 +00:00

AutoReactions: actually fix invalid custom emoji check

This commit is contained in:
Dragory 2019-01-12 16:06:33 +02:00
parent 052b580a38
commit c82448d2d7

View file

@ -61,7 +61,7 @@ export class AutoReactions extends Plugin {
const customEmojiMatch = reaction.match(customEmojiRegex);
if (customEmojiMatch) {
// Custom emoji
if (!guildEmojiIds.includes(customEmojiMatch[1])) {
if (!guildEmojiIds.includes(customEmojiMatch[2])) {
msg.channel.createMessage(errorMessage("I can only use regular emojis and custom emojis from this server"));
return;