Skip to content

MenuCommandContext

Extends

Type parameters

Type parameterValue
T extends MessageCommandInteraction | UserCommandInteraction-
M extends keyof RegisteredMiddlewaresnever

Constructors

new MenuCommandContext(client, interaction, shardId, command)

1
new MenuCommandContext<T, M>(
2
client: UsingClient,
3
interaction: T,
4
shardId: number,
5
command: ContextMenuCommand): MenuCommandContext<T, M>

Parameters

ParameterType
clientUsingClient
interactionT
shardIdnumber
commandContextMenuCommand

Returns

MenuCommandContext<T, M>

Inherited from

BaseContext.constructor

Source

seyfert/src/commands/applications/menucontext.ts:36

Properties

PropertyModifierTypeInherited from
clientreadonlyUsingClientBaseContext.client
commandreadonlyContextMenuCommand-
globalMetadatapublicGlobalMetadata-
interactionreadonlyT-
metadatapublicCommandMetadata<UnionToTuple<M, []>>-
shardIdreadonlynumber-

Accessors

author

1
get author(): User

Returns

User

Source

seyfert/src/commands/applications/menucontext.ts:148


channelId

1
get channelId(): string

Returns

string

Source

seyfert/src/commands/applications/menucontext.ts:144


fullCommandName

1
get fullCommandName(): string

Returns

string

Source

seyfert/src/commands/applications/menucontext.ts:66


guildId

1
get guildId(): undefined | string

Returns

undefined | string

Source

seyfert/src/commands/applications/menucontext.ts:140


member

1
get member(): undefined | InteractionGuildMember

Returns

undefined | InteractionGuildMember

Source

seyfert/src/commands/applications/menucontext.ts:152


proxy

1
get proxy(): APIRoutes

Returns

APIRoutes

Source

seyfert/src/commands/basecontex.ts:10


t

1
get t(): __InternalParseLocale<DefaultLocale> & Object

Returns

__InternalParseLocale<DefaultLocale> & Object

Source

seyfert/src/commands/applications/menucontext.ts:62


target

1
get target(): InteractionTarget<T>

Returns

InteractionTarget<T>

Source

seyfert/src/commands/applications/menucontext.ts:49

Methods

channel()

channel(mode)

1
channel(mode?: "rest" | "flow"): Promise<AllChannels>
Parameters
ParameterType
mode?"rest" | "flow"
Returns

Promise<AllChannels>

Source

seyfert/src/commands/applications/menucontext.ts:104

channel(mode)

1
channel(mode?: "cache"): ReturnCache<AllChannels>
Parameters
ParameterType
mode?"cache"
Returns

ReturnCache<AllChannels>

Source

seyfert/src/commands/applications/menucontext.ts:105


deferReply()

1
deferReply(ephemeral: boolean): Promise<void>

Parameters

ParameterTypeDefault value
ephemeralbooleanfalse

Returns

Promise<void>

Source

seyfert/src/commands/applications/menucontext.ts:81


deleteResponse()

1
deleteResponse(): Promise<undefined | void>

Returns

Promise<undefined | void>

Source

seyfert/src/commands/applications/menucontext.ts:89


editOrReply()

1
editOrReply<FR>(body: Omit<RESTPatchAPIWebhookWithTokenMessageJSONBody, "components" | "embeds"> & ResolverProps | Omit<APIInteractionResponseCallbackData, "components" | "embeds" | "poll"> & SendResolverProps, fetchReply?: FR): Promise<When<FR, Message | WebhookMessage, void | Message | WebhookMessage>>

Type parameters

Type parameterValue
FR extends booleanfalse

Parameters

ParameterType
bodyOmit<RESTPatchAPIWebhookWithTokenMessageJSONBody, "components" | "embeds"> & ResolverProps | Omit<APIInteractionResponseCallbackData, "components" | "embeds" | "poll"> & SendResolverProps
fetchReply?FR

Returns

Promise<When<FR, Message | WebhookMessage, void | Message | WebhookMessage>>

Source

seyfert/src/commands/applications/menucontext.ts:93


editResponse()

1
editResponse(body: Omit<RESTPatchAPIWebhookWithTokenMessageJSONBody, "components" | "embeds"> & ResolverProps): Promise<WebhookMessage>

Parameters

ParameterType
bodyOmit<RESTPatchAPIWebhookWithTokenMessageJSONBody, "components" | "embeds"> & ResolverProps

Returns

Promise<WebhookMessage>

Source

seyfert/src/commands/applications/menucontext.ts:85


fetchResponse()

1
fetchResponse(): Promise<undefined | WebhookMessage>

Returns

Promise<undefined | WebhookMessage>

Source

seyfert/src/commands/applications/menucontext.ts:100


guild()

guild(mode)

1
guild(mode?: "rest" | "flow"): Promise<undefined | Guild<"cached" | "api">>
Parameters
ParameterType
mode?"rest" | "flow"
Returns

Promise<undefined | Guild<"cached" | "api">>

Source

seyfert/src/commands/applications/menucontext.ts:125

guild(mode)

1
guild(mode?: "cache"): ReturnCache<undefined | Guild<"cached">>
Parameters
ParameterType
mode?"cache"
Returns

ReturnCache<undefined | Guild<"cached">>

Source

seyfert/src/commands/applications/menucontext.ts:126


isChat()

1
isChat(): this is CommandContext<Object, never>

Returns

this is CommandContext<Object, never>

Inherited from

BaseContext.isChat

Source

seyfert/src/commands/basecontex.ts:14


isComponent()

1
isComponent(): this is ComponentContext<keyof ComponentCommandInteractionMap>

Returns

this is ComponentContext<keyof ComponentCommandInteractionMap>

Inherited from

BaseContext.isComponent

Source

seyfert/src/commands/basecontex.ts:30


isMenu()

1
isMenu(): this is MenuCommandContext<UserCommandInteraction<boolean> | MessageCommandInteraction<boolean>, never>

Returns

this is MenuCommandContext<UserCommandInteraction<boolean> | MessageCommandInteraction<boolean>, never>

Inherited from

BaseContext.isMenu

Source

seyfert/src/commands/applications/menucontext.ts:156


isMenuMessage()

1
isMenuMessage(): this is MenuCommandContext<MessageCommandInteraction<boolean>, never>

Returns

this is MenuCommandContext<MessageCommandInteraction<boolean>, never>

Inherited from

BaseContext.isMenuMessage

Source

seyfert/src/commands/applications/menucontext.ts:164


isMenuUser()

1
isMenuUser(): this is MenuCommandContext<UserCommandInteraction<boolean>, never>

Returns

this is MenuCommandContext<UserCommandInteraction<boolean>, never>

Inherited from

BaseContext.isMenuUser

Source

seyfert/src/commands/applications/menucontext.ts:160


me()

me(mode)

1
me(mode?: "rest" | "flow"): Promise<GuildMember>
Parameters
ParameterType
mode?"rest" | "flow"
Returns

Promise<GuildMember>

Source

seyfert/src/commands/applications/menucontext.ts:112

me(mode)

1
me(mode?: "cache"): ReturnCache<undefined | GuildMember>
Parameters
ParameterType
mode?"cache"
Returns

ReturnCache<undefined | GuildMember>

Source

seyfert/src/commands/applications/menucontext.ts:113


1
modal(body: ModalCreateBodyRequest): Promise<void>

Parameters

ParameterType
bodyModalCreateBodyRequest

Returns

Promise<void>

Source

seyfert/src/commands/applications/menucontext.ts:77


write()

1
write<FR>(body: Omit<APIInteractionResponseCallbackData, "components" | "embeds" | "poll"> & SendResolverProps, fetchReply?: FR): Promise<When<FR, WebhookMessage, void | WebhookMessage>>

Type parameters

Type parameterValue
FR extends booleanfalse

Parameters

ParameterType
bodyOmit<APIInteractionResponseCallbackData, "components" | "embeds" | "poll"> & SendResolverProps
fetchReply?FR

Returns

Promise<When<FR, WebhookMessage, void | WebhookMessage>>

Source

seyfert/src/commands/applications/menucontext.ts:70