Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CommandInteraction<T>

Type parameters

Hierarchy

Index

Constructors

constructor

Properties

acknowledged

acknowledged: boolean

Optional appPermissions

appPermissions: Permission

applicationID

applicationID: string

channel

channel: T

createdAt

createdAt: number

data

data: { id: string; name: string; options?: InteractionDataOptions[]; resolved?: { channels?: Collection<PartialChannel>; members?: Collection<Omit<Member, "user" | "deaf" | "mute">>; messages?: Collection<Message<TextableChannel>>; roles?: Collection<Role>; users?: Collection<User> }; target_id?: string; type: ApplicationCommandTypes }

Type declaration

Optional guildID

guildID: string

id

id: string

Optional member

member: Member

token

token: string

type

type: 2

Optional user

user: User

version

version: number

Methods

acknowledge

  • acknowledge(flags?: number): Promise<void>
  • Parameters

    • Optional flags: number

    Returns Promise<void>

createFollowup

createMessage

defer

  • defer(flags?: number): Promise<void>
  • Parameters

    • Optional flags: number

    Returns Promise<void>

deleteMessage

  • deleteMessage(messageID: string): Promise<void>
  • Parameters

    • messageID: string

    Returns Promise<void>

deleteOriginalMessage

  • deleteOriginalMessage(): Promise<void>
  • Returns Promise<void>

editMessage

editOriginalMessage

getOriginalMessage

inspect

toJSON

  • Parameters

    • Optional props: string[]

    Returns JSONCache

toString

  • toString(): string
  • Returns string

Static from

Static getCreatedAt

  • getCreatedAt(id: string): number
  • Parameters

    • id: string

    Returns number

Static getDiscordEpoch

  • getDiscordEpoch(id: string): number

Generated using TypeDoc