From 5731b1f25474fc8f14fad25f078564121717a29a Mon Sep 17 00:00:00 2001 From: JandereDev Date: Wed, 22 Dec 2021 09:14:05 +0100 Subject: [PATCH] forgot to commit this --- src/bot/commands/warn.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bot/commands/warn.ts b/src/bot/commands/warn.ts index 0cb0c10..c5a2a15 100644 --- a/src/bot/commands/warn.ts +++ b/src/bot/commands/warn.ts @@ -1,5 +1,4 @@ import Command from "../../struct/Command"; -import { Message } from "@janderedev/revolt.js/dist/maps/Messages"; import { isModerator, NO_MANAGER_MSG, parseUser, storeInfraction } from "../util"; import Infraction from "../../struct/antispam/Infraction"; import { ulid } from "ulid"; @@ -43,7 +42,7 @@ export default { + ` for ${user.username ?? 'this user'}.\n` + `**Infraction ID:** \`${infraction._id}\`\n` + `**Reason:** \`${infraction.reason}\``), - logModAction('warn', message.member!, user, reason, `This is warn number **${userWarnCount}** for this user.`), + logModAction('warn', message.serverContext, message.member!, user, reason, `This is warn number **${userWarnCount}** for this user.`), ]); } } as Command;