ContextMenuCommand
Constructors
new ContextMenuCommand()
Returns
Properties
Property | Type |
---|---|
__filePath? | string |
__t? | Object |
__t.description | undefined | string |
__t.name | undefined | string |
botPermissions? | bigint |
contexts? | InteractionContextTypes [] |
defaultMemberPermissions? | bigint |
description | string |
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 >> |
dm? | boolean |
guildId? | string [] |
integrationTypes? | IntegrationTypes [] |
middlewares | never [] |
name | string |
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 >> |
nsfw? | boolean |
type | User | Message |
Methods
onAfterRun()?
Parameters
Parameter | Type |
---|---|
context | MenuCommandContext <any , never > |
error | unknown |
Returns
any
Source
seyfert/src/commands/applications/menu.ts:110
onBotPermissionsFail()
Parameters
Parameter | Type |
---|---|
context | MenuCommandContext <any , never > |
permissions | PermissionStrings |
Returns
any
Source
seyfert/src/commands/applications/menu.ts:117
onInternalError()
Parameters
Parameter | Type |
---|---|
client | UsingClient |
error ? | unknown |
Returns
any
Source
seyfert/src/commands/applications/menu.ts:123
onMiddlewaresError()
Parameters
Parameter | Type |
---|---|
context | MenuCommandContext <any , never > |
error | string |
Returns
any
Source
seyfert/src/commands/applications/menu.ts:114
onPermissionsFail()
Parameters
Parameter | Type |
---|---|
context | MenuCommandContext <any , never > |
permissions | PermissionStrings |
Returns
any
Source
seyfert/src/commands/applications/menu.ts:120
onRunError()
Parameters
Parameter | Type |
---|---|
context | MenuCommandContext <any , never > |
error | unknown |
Returns
any
Source
seyfert/src/commands/applications/menu.ts:111
reload()
Returns
Promise
<void
>
Source
seyfert/src/commands/applications/menu.ts:102
run()?
Parameters
Parameter | Type |
---|---|
context | MenuCommandContext <any , never > |
Returns
any
Source
seyfert/src/commands/applications/menu.ts:109
toJSON()
Returns
Object
Member | Type | Value |
---|---|---|
contexts | undefined | InteractionContextTypes [] | - |
default_member_permissions | undefined | 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 >> | - |
dm_permission | undefined | boolean | - |
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 | - |
type | User | Message | - |