Skip to main content

Class: ChatInputInteraction

Hierarchy

  • CommandInteraction

    ChatInputInteraction

Constructors

constructor

new ChatInputInteraction(app, raw)

Parameters

NameType
appApp
rawAPIChatInputApplicationCommandInteraction

Overrides

CommandInteraction.constructor

Defined in

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

Properties

app

app: App

Inherited from

CommandInteraction.app

Defined in

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


commandId

commandId: string

The ID of the command.

Inherited from

CommandInteraction.commandId

Defined in

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


commandName

commandName: string

The name of the command.

Inherited from

CommandInteraction.commandName

Defined in

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


createdTimestamp

createdTimestamp: number

Timestamp of when the interaction was created.

Inherited from

CommandInteraction.createdTimestamp

Defined in

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


guild

guild: null | ToBeFetched<Guild>

The guild of the interaction.

Inherited from

CommandInteraction.guild

Defined in

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


id

id: string

The ID of the interaction.

Inherited from

CommandInteraction.id

Defined in

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


member

member: null | GuildMember

The ID of the command.

Inherited from

CommandInteraction.member

Defined in

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


options

options: ChatInputInteractionOptions

The options of the interaction.

Defined in

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


raw

raw: APIChatInputApplicationCommandInteraction

Defined in

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


token

token: string

The token of the interaction.

Inherited from

CommandInteraction.token

Defined in

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


user

user: null | User

The ID of the command.

Inherited from

CommandInteraction.user

Defined in

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

Methods

deferReply

deferReply(): undefined

Returns

undefined

Inherited from

CommandInteraction.deferReply

Defined in

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


editReply

editReply(payload): Promise<unknown>

Parameters

NameType
payloadAPIInteractionResponseCallbackData

Returns

Promise<unknown>

Inherited from

CommandInteraction.editReply

Defined in

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


reply

reply(payload): undefined

Parameters

NameType
payloadAPIInteractionResponseCallbackData

Returns

undefined

Inherited from

CommandInteraction.reply

Defined in

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