Manages API methods for users and stores their cache.
Extends
CachedManager<Snowflake, User, UserResolvable>The cache of items for this manager.
Inherited from DataManagerThe client that instantiated this Manager
Inherited from BaseManagerThe data structure belonging to this manager.
Inherited from DataManagerCreates a between the client and a user.
Name | Type | Optional | Description |
---|---|---|---|
user | UserResolvable | No | The UserResolvable to identify |
options | BaseFetchOptions | Yes | Additional options for this fetch |
Deletes a (if one exists) between the client and a user. Resolves with the channel if successful.
Name | Type | Optional | Description |
---|---|---|---|
user | UserResolvable | No | The UserResolvable to identify |
Obtains a user from Discord, or the user cache if it's already available.
Name | Type | Optional | Description |
---|---|---|---|
user | UserResolvable | No | The user to fetch |
options | BaseFetchOptions | Yes | Additional options for this fetch |
Resolves a UserResolvable to a object.
Name | Type | Optional | Description |
---|---|---|---|
user | UserResolvable | No | The UserResolvable to identify |
Resolves a UserResolvable to a id.
Name | Type | Optional | Description |
---|---|---|---|
user | UserResolvable | No | The UserResolvable to identify |
Sends a message to a user.
Name | Type | Optional | Description |
---|---|---|---|
user | UserResolvable | No | The UserResolvable to identify |
options | string | MessagePayload | MessageCreateOptions | No | The options to provide |