Skip to main content

Class: UserContextMenuInteraction

Hierarchy​

Constructors​

constructor​

• new UserContextMenuInteraction(client, data)

Parameters​

NameType
clientClient
dataAPIUserApplicationCommandInteraction

Overrides​

CommandInteraction.constructor

Defined in​

packages/libcord/src/structures/interactions/UserContextMenuInteraction.ts:16

Properties​

channel​

• channel: null | Channel

Inherited from​

CommandInteraction.channel

Defined in​

packages/libcord/src/structures/interactions/CommandInteraction.ts:26


client​

• Readonly client: Client

Inherited from​

CommandInteraction.client

Defined in​

packages/libcord/src/structures/Base.ts:8


data​

• data: APIBaseInteraction<any, any>

Inherited from​

CommandInteraction.data

Defined in​

packages/libcord/src/structures/interactions/Interaction.ts:17


defered​

• Optional defered: boolean

Inherited from​

CommandInteraction.defered

Defined in​

packages/libcord/src/structures/interactions/CommandInteraction.ts:32


guild​

• guild: null | Guild

Inherited from​

CommandInteraction.guild

Defined in​

packages/libcord/src/structures/interactions/CommandInteraction.ts:27


id​

• id: string

Overrides​

CommandInteraction.id

Defined in​

packages/libcord/src/structures/interactions/UserContextMenuInteraction.ts:14


member​

• member: null | Member

Inherited from​

CommandInteraction.member

Defined in​

packages/libcord/src/structures/interactions/CommandInteraction.ts:29


name​

• name: string

Inherited from​

CommandInteraction.name

Defined in​

packages/libcord/src/structures/interactions/Interaction.ts:18


options​

• Optional options: any

Inherited from​

CommandInteraction.options

Defined in​

packages/libcord/src/structures/interactions/CommandInteraction.ts:31


replied​

• Optional replied: boolean

Inherited from​

CommandInteraction.replied

Defined in​

packages/libcord/src/structures/interactions/CommandInteraction.ts:33


token​

• token: string

Inherited from​

CommandInteraction.token

Defined in​

packages/libcord/src/structures/interactions/CommandInteraction.ts:30


type​

• type: number

Inherited from​

CommandInteraction.type

Defined in​

packages/libcord/src/structures/interactions/Interaction.ts:19


user​

• Optional user: User

Inherited from​

CommandInteraction.user

Defined in​

packages/libcord/src/structures/interactions/CommandInteraction.ts:28

Accessors​

targetUser​

• get targetUser(): User

Returns​

User

Defined in​

packages/libcord/src/structures/interactions/UserContextMenuInteraction.ts:22

Methods​

defer​

▸ defer(ephemeral): Promise<void>

Parameters​

NameType
ephemeralboolean

Returns​

Promise<void>

Inherited from​

CommandInteraction.defer

Defined in​

packages/libcord/src/structures/interactions/CommandInteraction.ts:67


isButton​

▸ isButton(): this is ButtonInteraction

Returns​

this is ButtonInteraction

Inherited from​

CommandInteraction.isButton

Defined in​

packages/libcord/src/structures/interactions/Interaction.ts:38


isCommand​

▸ isCommand(): this is CommandInteraction

Returns​

this is CommandInteraction

Inherited from​

CommandInteraction.isCommand

Defined in​

packages/libcord/src/structures/interactions/Interaction.ts:26


isMessageContextMenu​

▸ isMessageContextMenu(): this is MessageContextMenuInteraction

Returns​

this is MessageContextMenuInteraction

Inherited from​

CommandInteraction.isMessageContextMenu

Defined in​

packages/libcord/src/structures/interactions/Interaction.ts:30


isSelectMenu​

▸ isSelectMenu(): this is SelectMenuInteraction

Returns​

this is SelectMenuInteraction

Inherited from​

CommandInteraction.isSelectMenu

Defined in​

packages/libcord/src/structures/interactions/Interaction.ts:46


isUserContextMenu​

▸ isUserContextMenu(): this is UserContextMenuInteraction

Returns​

this is UserContextMenuInteraction

Inherited from​

CommandInteraction.isUserContextMenu

Defined in​

packages/libcord/src/structures/interactions/Interaction.ts:34


reply​

▸ reply(interactionOptions): Promise<UserContextMenuInteraction>

Parameters​

NameType
interactionOptionsstring | InteractionOptions

Returns​

Promise<UserContextMenuInteraction>

Inherited from​

CommandInteraction.reply

Defined in​

packages/libcord/src/structures/interactions/CommandInteraction.ts:79