new Command(data)
Class representing a command.
Parameters:
Name | Type | Description |
---|---|---|
data |
CommandData.<T> | The CommandData. |
- Source:
Members
aliases :Array.<string>
Type:
- Array.<string>
- Source:
deleteInvoking :boolean
Type:
- boolean
- Source:
deleteResponse :boolean
Type:
- boolean
- Source:
deleteResponseDelay :number
Type:
- number
- Source:
description :string
Type:
- string
- Source:
dmOnly :boolean
Type:
- boolean
- Source:
guildOnly :boolean
Type:
- boolean
- Source:
info :string
Type:
- string
- Source:
middleware :Array.<CommandMiddleware>
Type:
- Array.<CommandMiddleware>
- Source:
name :string
Type:
- string
- Source:
parameters :Array.<string>
Type:
- Array.<string>
- Source:
permission :Permission
Type:
- Source:
postHook :PostHook
Type:
- PostHook
- Source:
run :CommandAction.<T>
Type:
- CommandAction.<T>
- Source:
subCommands :ExtendedMap.<string, Command.<T>>
Type:
- ExtendedMap.<string, Command.<T>>
- Source: