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 DMChannel 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 DMChannel (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 |
Fetches a user's flags.
Name | Type | Optional | Description |
---|---|---|---|
user | UserResolvable | No | The UserResolvable to identify |
options | BaseFetchOptions | Yes | Additional options for this fetch |
Resolves a data entry to a data Object.
Returns
An instance from this ManagerName | Type | Optional | Description |
---|---|---|---|
idOrInstance | Holds | No | The id or instance of something in this Manager |
Resolves a data entry to an instance id.
Returns
Name | Type | Optional | Description |
---|---|---|---|
idOrInstance | K | Holds | No | The id or instance of something in this Manager |
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 |