1
0
mirror of https://github.com/Burn-E99/SweeperBot.git synced 2026-06-04 07:53:50 -04:00

fix deletereaction, started setting up service files

This commit is contained in:
Ean Milligan (Bastion)
2022-09-27 11:37:56 -04:00
parent 57d6b45d2e
commit 2a68522abd
5 changed files with 37 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ export const pollReactions = async (bot: Bot, message: Message, update = false)
if (reaction.emoji.name) {
// Make emoji name that matches our allEmojis array format
const emojiName = reaction.emoji.id ? `:${reaction.emoji.name}:${reaction.emoji.id}` : reaction.emoji.name;
await bot.helpers.deleteReaction(message.channelId, message.id, emojiName).catch((e: Error) => utils.commonLoggers.reactionDeleteError('pollReactions.ts:32', message, e, emojiName));
await bot.helpers.deleteReactionsEmoji(message.channelId, message.id, emojiName).catch((e: Error) => utils.commonLoggers.reactionDeleteError('pollReactions.ts:32', message, e, emojiName));
}
}
}