diff --git a/src/Command.ts b/src/Command.ts index e1bb778..b75f1cf 100644 --- a/src/Command.ts +++ b/src/Command.ts @@ -38,6 +38,7 @@ export class CommandCollection { } export class Command { + name : string; description? : string; args? : string[]; guildOnly? : boolean; @@ -47,7 +48,7 @@ export class Command { permissions? : string[]; constructor( - public name : string, + name : string, public execute : (message? : Message, args? : string[], client? : CustomClient) => void, { description = null as string, @@ -59,6 +60,7 @@ export class Command { permissions = null as string[], } ) { + this.name = name.toLowerCase(); this.description = description; this.args = args; this.guildOnly = guildOnly;