From 285cd2bcd82dd18236aadb07a81abbb42fb825b9 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Tue, 20 Oct 2020 17:47:49 +0300 Subject: [PATCH] Fix warn notification sometimes triggering on the bot's own reaction --- backend/src/plugins/ModActions/commands/WarnCmd.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/ModActions/commands/WarnCmd.ts b/backend/src/plugins/ModActions/commands/WarnCmd.ts index 401aa211..964a0327 100644 --- a/backend/src/plugins/ModActions/commands/WarnCmd.ts +++ b/backend/src/plugins/ModActions/commands/WarnCmd.ts @@ -71,7 +71,7 @@ export const WarnCmd = modActionsCmd({ config.warn_notify_message.replace("{priorWarnings}", `${priorWarnAmount}`), ); - const reply = await waitForReaction(pluginData.client, tooManyWarningsMsg, ["✅", "❌"]); + const reply = await waitForReaction(pluginData.client, tooManyWarningsMsg, ["✅", "❌"], msg.author.id); tooManyWarningsMsg.delete(); if (!reply || reply.name === "❌") { msg.channel.createMessage(errorMessage("Warn cancelled by moderator"));