Force command names as lowercase
This commit is contained in:
parent
cb09663742
commit
3bcb88d41c
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user