Skip to main content

Class: Interaction

Hierarchy​

Constructors​

constructor​

• new Interaction(client, data)

Parameters​

NameType
clientClient
dataAPIBaseInteraction<any, any>

Overrides​

Base.constructor

Defined in​

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

Properties​

client​

• Readonly client: Client

Inherited from​

Base.client

Defined in​

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


data​

• data: APIBaseInteraction<any, any>

Defined in​

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


name​

• name: string

Defined in​

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


type​

• type: number

Defined in​

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

Methods​

isButton​

▸ isButton(): this is ButtonInteraction

Returns​

this is ButtonInteraction

Defined in​

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


isCommand​

▸ isCommand(): this is CommandInteraction

Returns​

this is CommandInteraction

Defined in​

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


isMessageContextMenu​

▸ isMessageContextMenu(): this is MessageContextMenuInteraction

Returns​

this is MessageContextMenuInteraction

Defined in​

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


isSelectMenu​

▸ isSelectMenu(): this is SelectMenuInteraction

Returns​

this is SelectMenuInteraction

Defined in​

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


isUserContextMenu​

▸ isUserContextMenu(): this is UserContextMenuInteraction

Returns​

this is UserContextMenuInteraction

Defined in​

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