class UserManager

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

Manages API methods for users and stores their cache.

readonly
cache : Collection<Key, Holds>

The cache of items for this manager.

Inherited from: DataManager

readonly
client : Client

The client that instantiated this Manager

Inherited from: BaseManager

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