class UserManager
extends
CachedManager<Snowflake, User, UserResolvable>export class UserManager extends CachedManager<Snowflake, User, UserResolvable>
Manages API methods for users and stores their cache.
readonlyCollection<Key, Holds> cache :
The cache of items for this manager.
Inherited from: DataManager
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.
resolveuser: UserResolvable) : User | null (
user: UserResolvable
Resolves a UserResolvable to a User object.
resolveIduser: UserResolvable) : Snowflake | null (
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