Command `admin.ts` not being registered in the command registry

This is the error message I am receiving when I run the bot: Encountered error while handling the command application command registry for command "admin" at path "~/dist/commands/admin.js" ExpectedConstraintError > s.string.lengthGreaterThanOrEqual this is what the admin.ts looks like:
ApplyOptions<Command.Options>({
name: 'admin',
description: 'Admin-only commands.'
})
export class AdminCommand extends Command { /* ... */ };
ApplyOptions<Command.Options>({
name: 'admin',
description: 'Admin-only commands.'
})
export class AdminCommand extends Command { /* ... */ };
3 Replies
abe
abe9mo ago
nevermind i just delete my dist and recompiled and the error just vanishede away??
Favna
Favna9mo ago
Old files. Typescript doesn't delete files from dist when you delete the TS files.
abe
abe9mo ago
got it thanks