Skip to content

Commit 5b71b56

Browse files
committed
1 parent c32721c commit 5b71b56

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib/structures/Command.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ export abstract class Command<T = Args> extends AliasPiece {
9090

9191
const run = Reflect.get(this, 'run');
9292
if (typeof run === 'function' && !Reflect.has(this, 'messageRun')) {
93-
process.emitWarning(`The "run" method in commands is deprecated. Use "messageRun" instead (seen in "${this.name}", at "${this.path}")`, 'DeprecationWarning');
93+
process.emitWarning(
94+
`The "run" method in commands is deprecated. Use "messageRun" instead (seen in "${this.name}", at "${this.location.full}")`,
95+
'DeprecationWarning'
96+
);
9497
Reflect.set(this, 'messageRun', run);
9598
}
9699
}

0 commit comments

Comments
 (0)