Skip to content

Commit

Permalink
Update src/lib/structures/Command.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Vlad Frangu <[email protected]>
  • Loading branch information
favna and vladfrangu authored Oct 15, 2021
1 parent 50a04d1 commit 0631e7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/structures/Command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export abstract class Command<T = Args> 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);
Expand Down

0 comments on commit 0631e7c

Please sign in to comment.