Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Context

Hierarchy

  • Context

Index

Constructors

constructor

  • new Context(data: Interaction): Context

Properties

author

author: User = ...

Protected components

components: Map<"buttons" | "menus", ActionRow> = ...

Protected data

data: Interaction

member

member: Member = ...

Methods

button

delete

  • delete(): Promise<void>

edit

  • edit(message: InteractionForm): Promise<Message>

getChannel

  • getChannel(force?: boolean): Promise<Channel>
  • Fetches raw channel data

    Parameters

    • force: boolean = false

      If it should force and get the most recent data (slower) or use the cached version

    Returns Promise<Channel>

getGuild

  • getGuild(force?: boolean): Promise<Guild>

send

  • send(message: InteractionForm, type?: "Pong" | "ChannelMessageWithSource" | "DeferredChannelMessageWithSource" | "DeferredUpdateMessage" | "UpdateMessage"): Promise<void>
  • Sends a POST

    Parameters

    • message: InteractionForm
    • type: "Pong" | "ChannelMessageWithSource" | "DeferredChannelMessageWithSource" | "DeferredUpdateMessage" | "UpdateMessage" = 'ChannelMessageWithSource'

    Returns Promise<void>