Skip to main content

Class: UserContextMenuInteraction

Hierarchy

Constructors

constructor

new UserContextMenuInteraction(app, raw)

Parameters

NameType
appApp
rawAPIUserApplicationCommandInteraction

Overrides

ContextMenuInteraction.constructor

Defined in

packages/disploy/src/structs/UserContextMenuInteraction.ts:12

Properties

app

app: App

Inherited from

ContextMenuInteraction.app

Defined in

packages/disploy/src/structs/Base.ts:4


commandId

commandId: string

The ID of the command.

Inherited from

ContextMenuInteraction.commandId

Defined in

packages/disploy/src/structs/CommandInteraction.ts:9


commandName

commandName: string

The name of the command.

Inherited from

ContextMenuInteraction.commandName

Defined in

packages/disploy/src/structs/CommandInteraction.ts:14


createdTimestamp

createdTimestamp: number

Timestamp of when the interaction was created.

Inherited from

ContextMenuInteraction.createdTimestamp

Defined in

packages/disploy/src/structs/BaseInteraction.ts:33


guild

guild: null | ToBeFetched<Guild>

The guild of the interaction.

Inherited from

ContextMenuInteraction.guild

Defined in

packages/disploy/src/structs/BaseInteraction.ts:53


id

id: string

The ID of the interaction.

Inherited from

ContextMenuInteraction.id

Defined in

packages/disploy/src/structs/BaseInteraction.ts:28


member

member: null | GuildMember

The GuildMember who invoked the interaction.

Inherited from

ContextMenuInteraction.member

Defined in

packages/disploy/src/structs/BaseInteraction.ts:48


targetId

targetId: string

The ID of the target.

Inherited from

ContextMenuInteraction.targetId

Defined in

packages/disploy/src/structs/ContextMenuCommand.ts:9


targetUser

Readonly targetUser: User

The target user.

Defined in

packages/disploy/src/structs/UserContextMenuInteraction.ts:10


token

token: string

The token of the interaction.

Inherited from

ContextMenuInteraction.token

Defined in

packages/disploy/src/structs/BaseInteraction.ts:38


user

user: User

The User that invoked the interaction.

Inherited from

ContextMenuInteraction.user

Defined in

packages/disploy/src/structs/BaseInteraction.ts:43

Methods

deferReply

deferReply(options?): Promise<Message>

Defers the reply to the interaction.

Parameters

NameTypeDescription
options?ObjectThe options to defer the reply with.
options.ephemeral?boolean-
options.fetchReply?true-

Returns

Promise<Message>

Inherited from

ContextMenuInteraction.deferReply

Defined in

packages/disploy/src/structs/BaseInteraction.ts:71


editReply

editReply(payload): Promise<Message>

Edit the original reply that has been sent by the interaction.

Parameters

NameTypeDescription
payloadAddUndefinedToPossiblyUndefinedPropertiesOfInterface<Nullable<Pick<AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ allowed_mentions?: APIAllowedMentions ; attachments?: Pick<APIAttachment, "id" | "description"> & Partial<Pick<APIAttachment, "filename">>[] ; avatar_url?: string ; components?: APIActionRowComponent<APIMessageActionRowComponent>[] ; content?: string ; embeds?: APIEmbed[] ; flags?: MessageFlags ; thread_name?: string ; tts?: boolean ; username?: string }>, "content" | "embeds" | "allowed_mentions" | "components">> & { attachments?: Pick<APIAttachment, "id"> & Partial<Pick<APIAttachment, "description" | "filename">>[] }>The payload to edit the reply with.

Returns

Promise<Message>

The edited message.

Inherited from

ContextMenuInteraction.editReply

Defined in

packages/disploy/src/structs/BaseInteraction.ts:125


fetchReply

fetchReply(id?): Promise<Message>

Fetch the message reply that has been sent by the interaction.

Parameters

NameType
id?string

Returns

Promise<Message>

The message that was sent by the interaction.

Inherited from

ContextMenuInteraction.fetchReply

Defined in

packages/disploy/src/structs/BaseInteraction.ts:139


followUp

followUp(payload): Promise<Message>

Send a followup message to the interaction.

Parameters

NameTypeDescription
payloadAPIInteractionResponseCallbackDataThe payload to send the followup message with.

Returns

Promise<Message>

The sent message.

Inherited from

ContextMenuInteraction.followUp

Defined in

packages/disploy/src/structs/BaseInteraction.ts:111


reply

reply(payload, fetchReply?): Promise<Message>

Send a reply to the interaction.

Parameters

NameTypeDescription
payloadAPIInteractionResponseCallbackDataThe payload to send the reply with.
fetchReply?trueWhether to fetch the reply that was sent.

Returns

Promise<Message>

Inherited from

ContextMenuInteraction.reply

Defined in

packages/disploy/src/structs/BaseInteraction.ts:92