Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UserManager

Manages API methods for Users

Hierarchy

  • UserManager

Index

Constructors

Properties

Accessors

Methods

Constructors

Properties

client: Client

The Client that instantiated this Manager

Accessors

  • A manager of the users belonging to this client

    Returns LimitedCollection<string, User>

  • get me(): undefined | User
  • User that the client is logged in as

    Returns undefined | User

Methods

  • createDM(id: string): Promise<Channel>
  • Creates a DMChannel between the client and a user

    Parameters

    • id: string

    Returns Promise<Channel>

  • fetch(id: string): Promise<User>
  • Obtains a user from Discord, or the user cache if it's already available

    Parameters

    • id: string

    Returns Promise<User>

  • Updates or caches a User with the provided APIUser data

    Parameters

    Returns User

Generated using TypeDoc version 0.22.16, the 9/16/2022 at 1:09:16 AM