Skip to main content

Class: BaseInteraction

Hierarchy

  • Base

    BaseInteraction

Constructors

constructor

new BaseInteraction(app, raw)

Parameters

NameType
appApp
rawAPIInteraction

Overrides

Base.constructor

Defined in

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

Properties

app

app: App

Inherited from

Base.app

Defined in

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


createdTimestamp

createdTimestamp: number

Timestamp of when the interaction was created.

Defined in

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


guild

guild: null | ToBeFetched<Guild>

The guild of the interaction.

Defined in

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


id

id: string

The ID of the interaction.

Defined in

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


member

member: null | GuildMember

The GuildMember who invoked the interaction.

Defined in

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


token

token: string

The token of the interaction.

Defined in

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


user

user: User

The User that invoked the interaction.

Defined in

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

Methods

deferReply

deferReply(ephemeral?): undefined

Parameters

NameTypeDefault value
ephemeralbooleanfalse

Returns

undefined

Defined in

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


editReply

editReply(payload): Promise<unknown>

Parameters

NameType
payloadAPIInteractionResponseCallbackData

Returns

Promise<unknown>

Defined in

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


reply

reply(payload): undefined

Parameters

NameType
payloadAPIInteractionResponseCallbackData

Returns

undefined

Defined in

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