Archived
1.1.2 -> added async command support (return type)
This commit is contained in:
1 parent
b4fe0bd035
commit
d1f094a09e
4 files changed
+6
-6
No files matched your search
+2
-2
@@ -11,7 +11,7 @@ interface CommandBuilder {
|
||||
permissionCheck?: PermissionCheckTypes,
|
||||
permissions?: PermissionResolvable,
|
||||
visible?: boolean
|
||||
function: (message?: Message, cmdArguments?: string[]) => void | string | MessageEmbed;
|
||||
function: (message?: Message, cmdArguments?: string[]) => void | string | MessageEmbed | Promise<void | string | MessageEmbed>;
|
||||
}
|
||||
interface CommandMessageStructure {
|
||||
name: string,
|
||||
@@ -48,7 +48,7 @@ class Command {
|
||||
permissionCheck: PermissionCheckTypes;
|
||||
permissions: Permissions;
|
||||
visible: boolean;
|
||||
private function: (message?: Message, cmdArguments?: string[]) => void | string | MessageEmbed;
|
||||
private function: (message?: Message, cmdArguments?: string[]) => void | string | MessageEmbed | Promise<void | string | MessageEmbed>;
|
||||
|
||||
constructor(options: CommandBuilder) {
|
||||
this.name = options.name.split(' ').join('_');
|
||||
|
||||
Reference in new issue
Block a user