From 0631e7c25643ccd5b5b3e96a9a2737d804842a26 Mon Sep 17 00:00:00 2001 From: Jeroen Claassens Date: Fri, 15 Oct 2021 19:46:46 +0200 Subject: [PATCH] Update src/lib/structures/Command.ts Co-authored-by: Vlad Frangu --- src/lib/structures/Command.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/structures/Command.ts b/src/lib/structures/Command.ts index b4deb5ce3..9e381deb9 100644 --- a/src/lib/structures/Command.ts +++ b/src/lib/structures/Command.ts @@ -92,7 +92,7 @@ export abstract class Command extends AliasPiece { if (typeof run === 'function' && !Reflect.has(this, 'messageRun')) { process.emitWarning('The "run" method in commands is deprecated.', { type: 'DeprecationWarning', - code: 'SLASH_COMMAND_MIGRATION', + code: 'CHAT_INPUT_COMMAND_MIGRATION_PREPARATION', detail: `Use "messageRun" instead (seen in "${this.name}", at "${this.location.full}")` }); Reflect.set(this, 'messageRun', run);