Birb / UsersManager
Class: UsersManager
Hierarchy
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new UsersManager(client
)
Parameters
Name | Type |
---|---|
client | Birb |
Overrides
Defined in
src/classes/managers/UsersManager.ts:9
Properties
cache
The cache that contains all the Manager’s items.
Inherited from
Defined in
src/classes/managers/Manager.ts:12
client
• client: Birb
The Birb client.
Inherited from
Defined in
src/classes/managers/Manager.ts:8
Methods
fetch
▸ fetch(target
): Promise
<undefined
| Guild
>
Fetch a user from the cache, or the API if it is not cached.
Parameters
Name | Type | Description |
---|---|---|
target | string | GuildPartial | Guild | The target user. |
Returns
Defined in
src/classes/managers/UsersManager.ts:25
resolve
▸ resolve(target
): undefined
| User
Parameters
Name | Type |
---|---|
target | string | User |
Returns
undefined
| User
Defined in
src/classes/managers/UsersManager.ts:13
total
▸ total(): number
Returns
number
The total amount of users cached in this manager.
Defined in
src/classes/managers/UsersManager.ts:34