export Class
ChatsManager ​
extends ​
CachedManager<number, Chat>
Constructor ​
ts
new ChatsManager( client )| Parameter | Type | Description |
|---|---|---|
client | Client |
Properties ​
get cache : Collection<CachedManager.K, CachedManager.V> ​
get defaults : Function ​
get isJson : Function ​
get nest : Function ​
readonly client : Client ​
readonly default? : any ​
readonly options : any ​
Methods ​
_add( packet, cache, param2 ) ​
| Parameter | Type | Description |
|---|---|---|
packet | any | |
cache? | boolean | Pass True to cache the data. |
param2 = {} | any | Additional data to pass. |
Add data with cache check to the current manager.
Returns:
any
asyncfetch( chat_id ) ​
| Parameter | Type | Description |
|---|---|---|
chat_id | number |
Returns:
Promise<boolean|Chat>