class UserManager
extends
CachedManager<Snowflake, User, UserResolvable>export class UserManager extends CachedManager<Snowflake, User, UserResolvable>
Manages API methods for users and stores their cache.
Collection<Snowflake, User> cache :
The cache of this manager
readonlyClient client :
The client that instantiated this Manager
readonlyConstructable<Holds> holds :
The data structure belonging to this manager.
Inherited from: DataManager
createDMuser: UserResolvableoptions?: BaseFetchOptions) : Promise<DMChannel> (
user: UserResolvable
options?: BaseFetchOptions
Creates a DMChannel between the client and a user.
deleteDMuser: UserResolvable) : Promise<DMChannel> (
user: UserResolvable
Deletes a DMChannel (if one exists) between the client and a user. Resolves with the channel if successful.
fetchuser: UserResolvableoptions?: BaseFetchOptions) : Promise<User> (
user: UserResolvable
options?: BaseFetchOptions
Obtains a user from Discord, or the user cache if it's already available.
fetchFlagsuser: UserResolvableoptions?: BaseFetchOptions) : Promise<UserFlagsBitField> (
user: UserResolvable
options?: BaseFetchOptions
Fetches a user's flags.
resolveuser: UserResolvable) : User (
user: UserResolvable
Resolves a UserResolvable to a User object.
resolveIduser: UserResolvable) : Snowflake (
user: UserResolvable
Resolves a UserResolvable to a User id.
senduser: UserResolvableoptions: string | MessagePayload | MessageCreateOptions) : Promise<Message> (
user: UserResolvable
options: string | MessagePayload | MessageCreateOptions
Sends a message to a user.
valueOfCollection<Key, Holds> () :
Inherited from: DataManager