Command
Extends
BaseCommand
Constructors
new Command()
1new Command(): Command
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 | - | - |
__tGroups? | Record <string , Object > | - | - |
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 |
groups? | Record <string , Object > | - | - |
groupsAliases? | Record <string , 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 [] | SubCommand [] | BaseCommand.options | BaseCommand.options |
type | ApplicationCommandType | BaseCommand.type | BaseCommand.type |
Methods
onAfterRun()?
1optional onAfterRun(context: CommandContext<Object, never>, error: unknown): any
Parameters
Parameter | Type |
---|---|
context | CommandContext <Object , never > |
error | unknown |
Returns
any
Inherited from
BaseCommand.onAfterRun
Source
seyfert/src/commands/applications/chat.ts:281
onBotPermissionsFail()?
1optional onBotPermissionsFail(context: CommandContext<Object, never>, permissions: PermissionStrings): any
Parameters
Parameter | Type |
---|---|
context | CommandContext <Object , never > |
permissions | PermissionStrings |
Returns
any
Inherited from
BaseCommand.onBotPermissionsFail
Source
seyfert/src/commands/applications/chat.ts:285
onInternalError()?
1optional onInternalError(2 client: UsingClient,3 command: Command | SubCommand,4 error?: unknown): any
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()?
1optional onMiddlewaresError(context: CommandContext<Object, never>, error: string): any
Parameters
Parameter | Type |
---|---|
context | CommandContext <Object , never > |
error | string |
Returns
any
Inherited from
BaseCommand.onMiddlewaresError
Source
seyfert/src/commands/applications/chat.ts:284
onOptionsError()?
1optional onOptionsError(context: CommandContext<Object, never>, metadata: OnOptionsReturnObject): any
Parameters
Parameter | Type |
---|---|
context | CommandContext <Object , never > |
metadata | OnOptionsReturnObject |
Returns
any
Inherited from
BaseCommand.onOptionsError
Source
seyfert/src/commands/applications/chat.ts:283
onPermissionsFail()?
1optional onPermissionsFail(context: CommandContext<Object, never>, permissions: PermissionStrings): any
Parameters
Parameter | Type |
---|---|
context | CommandContext <Object , never > |
permissions | PermissionStrings |
Returns
any
Inherited from
BaseCommand.onPermissionsFail
Source
seyfert/src/commands/applications/chat.ts:286
onRunError()?
1optional onRunError(context: CommandContext<Object, never>, error: unknown): any
Parameters
Parameter | Type |
---|---|
context | CommandContext <Object , never > |
error | unknown |
Returns
any
Inherited from
BaseCommand.onRunError
Source
seyfert/src/commands/applications/chat.ts:282
reload()
1reload(): Promise<void>
Returns
Promise
<void
>
Inherited from
BaseCommand.reload
Source
seyfert/src/commands/applications/chat.ts:266
run()?
1optional run(context: CommandContext<Object, never>): any
Parameters
Parameter | Type |
---|---|
context | CommandContext <Object , never > |
Returns
any
Inherited from
BaseCommand.run
Source
seyfert/src/commands/applications/chat.ts:280
toJSON()
1toJSON(): Object
Returns
Object
Member | Type |
---|---|
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 | APIApplicationCommandOption [] |
type | number |
Overrides
BaseCommand.toJSON