class UserManager

export class UserManager extends CachedManager<Snowflake, User, UserResolvable>

Manages API methods for users and stores their cache.

The cache of this manager

readonly
client : Client

The client that instantiated this Manager

readonly
holds : Constructable<Holds>

The data structure belonging to this manager.

Inherited from: DataManager

createDM() : Promise<DMChannel>

Creates a DMChannel between the client and a user.

deleteDM() : Promise<DMChannel>

Deletes a DMChannel (if one exists) between the client and a user. Resolves with the channel if successful.

fetch() : Promise<User>

Obtains a user from Discord, or the user cache if it's already available.

Fetches a user's flags.

resolve() : User

Resolves a UserResolvable to a User object.

resolveId() : Snowflake

Resolves a UserResolvable to a User id.

Sends a message to a user.

valueOf() : Collection<Key, Holds>

Inherited from: DataManager