SubCommand
Extends
BaseCommand
Constructors
new SubCommand()
Returns
Inherited from
BaseCommand.constructor
Properties
Property | Type | Overrides | Inherited from |
---|---|---|---|
__autoload? | true | BaseCommand.__autoload | BaseCommand.__autoload |
__filePath? | string | BaseCommand.__filePath | BaseCommand.__filePath |
__t? | Object | BaseCommand.__t | BaseCommand.__t |
__t.description | undefined | string | - | - |
__t.name | undefined | string | - | - |
aliases? | string [] | BaseCommand.aliases | BaseCommand.aliases |
botPermissions? | bigint | BaseCommand.botPermissions | BaseCommand.botPermissions |
contexts? | InteractionContextTypes [] | BaseCommand.contexts | BaseCommand.contexts |
defaultMemberPermissions? | bigint | BaseCommand.defaultMemberPermissions | BaseCommand.defaultMemberPermissions |
description | string | BaseCommand.description | BaseCommand.description |
description_localizations? | Partial <Record < | "id" | "en-US" | "en-GB" | "bg" | "zh-CN" | "zh-TW" | "hr" | "cs" | "da" | "nl" | "fi" | "fr" | "de" | "el" | "hi" | "hu" | "it" | "ja" | "ko" | "lt" | "no" | "pl" | "pt-BR" | "ro" | "ru" | "es-ES" | "es-419" | "sv-SE" | "th" | "tr" | "uk" | "vi" , string >> | BaseCommand.description_localizations | BaseCommand.description_localizations |
group? | string | - | - |
guildId? | string [] | BaseCommand.guildId | BaseCommand.guildId |
ignore? | IgnoreCommand | BaseCommand.ignore | BaseCommand.ignore |
integrationTypes? | IntegrationTypes [] | BaseCommand.integrationTypes | BaseCommand.integrationTypes |
middlewares | never [] | BaseCommand.middlewares | BaseCommand.middlewares |
name | string | BaseCommand.name | BaseCommand.name |
name_localizations? | Partial <Record < | "id" | "en-US" | "en-GB" | "bg" | "zh-CN" | "zh-TW" | "hr" | "cs" | "da" | "nl" | "fi" | "fr" | "de" | "el" | "hi" | "hu" | "it" | "ja" | "ko" | "lt" | "no" | "pl" | "pt-BR" | "ro" | "ru" | "es-ES" | "es-419" | "sv-SE" | "th" | "tr" | "uk" | "vi" , string >> | BaseCommand.name_localizations | BaseCommand.name_localizations |
nsfw? | boolean | BaseCommand.nsfw | BaseCommand.nsfw |
options? | CommandOption [] | BaseCommand.options | BaseCommand.options |
type | ApplicationCommandOptionType | BaseCommand.type | BaseCommand.type |
Methods
onAfterRun()?
Parameters
Parameter | Type |
---|---|
context | CommandContext <Object , never > |
error | unknown |
Returns
any
Inherited from
BaseCommand.onAfterRun
Source
seyfert/src/commands/applications/chat.ts:281
onBotPermissionsFail()?
Parameters
Parameter | Type |
---|---|
context | CommandContext <Object , never > |
permissions | PermissionStrings |
Returns
any
Inherited from
BaseCommand.onBotPermissionsFail
Source
seyfert/src/commands/applications/chat.ts:285
onInternalError()?
Parameters
Parameter | Type |
---|---|
client | UsingClient |
command | Command | SubCommand |
error ? | unknown |
Returns
any
Inherited from
BaseCommand.onInternalError
Source
seyfert/src/commands/applications/chat.ts:287
onMiddlewaresError()?
Parameters
Parameter | Type |
---|---|
context | CommandContext <Object , never > |
error | string |
Returns
any
Inherited from
BaseCommand.onMiddlewaresError
Source
seyfert/src/commands/applications/chat.ts:284
onOptionsError()?
Parameters
Parameter | Type |
---|---|
context | CommandContext <Object , never > |
metadata | OnOptionsReturnObject |
Returns
any
Inherited from
BaseCommand.onOptionsError
Source
seyfert/src/commands/applications/chat.ts:283
onPermissionsFail()?
Parameters
Parameter | Type |
---|---|
context | CommandContext <Object , never > |
permissions | PermissionStrings |
Returns
any
Inherited from
BaseCommand.onPermissionsFail
Source
seyfert/src/commands/applications/chat.ts:286
onRunError()?
Parameters
Parameter | Type |
---|---|
context | CommandContext <Object , never > |
error | unknown |
Returns
any
Inherited from
BaseCommand.onRunError
Source
seyfert/src/commands/applications/chat.ts:282
reload()
Returns
Promise
<void
>
Inherited from
BaseCommand.reload
Source
seyfert/src/commands/applications/chat.ts:266
run()
Parameters
Parameter | Type |
---|---|
context | CommandContext <any , never > |
Returns
any
Overrides
BaseCommand.run
Source
seyfert/src/commands/applications/chat.ts:351
toJSON()
Returns
Object
Member | Type | Value |
---|---|---|
contexts | undefined | InteractionContextTypes [] | - |
default_member_permissions | string | - |
description | string | - |
description_localizations | undefined | Partial <Record < | "id" | "en-US" | "en-GB" | "bg" | "zh-CN" | "zh-TW" | "hr" | "cs" | "da" | "nl" | "fi" | "fr" | "de" | "el" | "hi" | "hu" | "it" | "ja" | "ko" | "lt" | "no" | "pl" | "pt-BR" | "ro" | "ru" | "es-ES" | "es-419" | "sv-SE" | "th" | "tr" | "uk" | "vi" , string >> | - |
guild_id | undefined | string [] | - |
integration_types | undefined | IntegrationTypes [] | - |
name | string | - |
name_localizations | undefined | Partial <Record < | "id" | "en-US" | "en-GB" | "bg" | "zh-CN" | "zh-TW" | "hr" | "cs" | "da" | "nl" | "fi" | "fr" | "de" | "el" | "hi" | "hu" | "it" | "ja" | "ko" | "lt" | "no" | "pl" | "pt-BR" | "ro" | "ru" | "es-ES" | "es-419" | "sv-SE" | "th" | "tr" | "uk" | "vi" , string >> | - |
nsfw | undefined | boolean | - |
options | APIApplicationCommandBasicOption [] | - |
type | number | - |
Overrides
BaseCommand.toJSON