Birb / GuildMemberManager
Class: GuildMemberManager
Hierarchy
-
↳
GuildMemberManager
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new GuildMemberManager(client
, guild
)
Parameters
Overrides
Defined in
src/classes/managers/GuildMembersManager.ts:13
Properties
cache
• cache: Cache
<string
, GuildMember
>
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
guild
• guild: Guild
The parent Guild.
Defined in
src/classes/managers/GuildMembersManager.ts:11
Methods
fetch
▸ fetch(target
): Promise
<undefined
| GuildMember
>
Fetch a guild from the cache, or the API if it is not cached.
Parameters
Name | Type | Description |
---|---|---|
target | string | GuildMember | The target member. |
Returns
Promise
<undefined
| GuildMember
>
Defined in
src/classes/managers/GuildMembersManager.ts:27
resolve
▸ resolve(target
): undefined
| GuildMember
Parameters
Name | Type |
---|---|
target | string | GuildMember |
Returns
undefined
| GuildMember
Defined in
src/classes/managers/GuildMembersManager.ts:18
total
▸ total(): number
Returns
number
The total amount of members cached in this manager. There may be more or less members in the guild.
Defined in
src/classes/managers/GuildMembersManager.ts:36