Skip to main content

Class: CommandInteraction

Hierarchy

Constructors

constructor

new CommandInteraction(client, data)

Parameters

NameType
clientClient
dataAPIChatInputApplicationCommandInteraction

Overrides

Interaction.constructor

Defined in

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

Properties

channel

channel: null | Channel

Defined in

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


client

Readonly client: Client

Inherited from

Interaction.client

Defined in

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


data

data: APIBaseInteraction<any, any>

Inherited from

Interaction.data

Defined in

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


defered

Optional defered: boolean

Defined in

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


guild

guild: null | Guild

Defined in

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


id

id: string

Defined in

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


member

member: null | Member

Defined in

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


name

name: string

Inherited from

Interaction.name

Defined in

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


options

Optional options: any

Defined in

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


replied

Optional replied: boolean

Defined in

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


token

token: string

Defined in

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


type

type: number

Inherited from

Interaction.type

Defined in

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


user

Optional user: User

Defined in

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

Methods

defer

defer(ephemeral): Promise<void>

Parameters

NameType
ephemeralboolean

Returns

Promise<void>

Defined in

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


isButton

isButton(): this is ButtonInteraction

Returns

this is ButtonInteraction

Inherited from

Interaction.isButton

Defined in

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


isCommand

isCommand(): this is CommandInteraction

Returns

this is CommandInteraction

Inherited from

Interaction.isCommand

Defined in

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


isMessageContextMenu

isMessageContextMenu(): this is MessageContextMenuInteraction

Returns

this is MessageContextMenuInteraction

Inherited from

Interaction.isMessageContextMenu

Defined in

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


isSelectMenu

isSelectMenu(): this is SelectMenuInteraction

Returns

this is SelectMenuInteraction

Inherited from

Interaction.isSelectMenu

Defined in

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


isUserContextMenu

isUserContextMenu(): this is UserContextMenuInteraction

Returns

this is UserContextMenuInteraction

Inherited from

Interaction.isUserContextMenu

Defined in

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


reply

reply(interactionOptions): Promise<CommandInteraction>

Parameters

NameType
interactionOptionsstring | InteractionOptions

Returns

Promise<CommandInteraction>

Defined in

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