Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ObjectID<T>

Wrapped representation of Discord user, role, channel or other mentionable Discord arugment object

Type parameters

Hierarchy

  • ObjectID

Index

Constructors

Properties

Methods

Constructors

constructor

  • new ObjectID<T>(id: string, type: T, guild?: Guild): ObjectID<T>
  • Type parameters

    Parameters

    • id: string

      object Discord ID

    • type: T

      object type

    • Optional guild: Guild

    Returns ObjectID<T>

Properties

Optional Readonly guild

guild?: Guild

Guild needed to convert the object

readonly

Readonly id

id: string

Object ID

readonly

Readonly type

type: T

Object type

readonly

Methods

toObject

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

    async

    Returns Promise<null | ObjectIdReturnType<T>>

    A fetched object (or null)

Generated using TypeDoc