Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TargetID<T>

Wrapped representation of Discord target object (target of context menu interactions)

Type parameters

Hierarchy

  • TargetID

Index

Constructors

Properties

Methods

Constructors

constructor

  • new TargetID<T>(id: string, type: T, interaction: Message | Interaction): TargetID<T>
  • Type parameters

    Parameters

    • id: string

      object Discord ID

    • type: T
    • interaction: Message | Interaction

    Returns TargetID<T>

Properties

Readonly id

id: string

Object ID

readonly

Readonly interaction

interaction: Message | Interaction

Interaction associated with the target

readonly

Private Readonly type

type: T

Target type

readonly

Methods

toObject

  • Uses informations associated with the object to generate a Discord.js representation

    async

    Returns null | TargetIdReturnType<T>

    A fetched object (or null)

Generated using TypeDoc