Class
UserManager
User cache + fetch/profile helpers. Extends Collection (`.get()`, `.set()`, `.filter()`, …). Access via Client.
Extends Collection
Constructor
new UserManager
(client: Client)| Param | Type | Description |
|---|---|---|
| client | Client |
Properties
maxSize
: number (readonly)Methods
fetch
(userId: string): Promise<User>Fetch a user by ID and update cache.
| Param | Type | Description |
|---|---|---|
| userId | string |
fetchWithProfile
(userId: string, options?: { guildId?: string | null; }): Promise<FetchedUserWithProfile>Fetch user + profiles (+ optional guild member). Ideal for userinfo commands.
| Param | Type | Description |
|---|---|---|
| userId | string | |
| options? | { guildId?: string | null; } |