Manages API methods for users and stores their cache.
Extends
CachedManager<Snowflake, User, UserResolvable>The 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 UserResolvable to a User object.
Name | Type | Optional | Description |
---|---|---|---|
user | UserResolvable | No | The UserResolvable to identify |
Resolves a UserResolvable to a User 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 |