Skip to content

export Class

ChatsManager ​

extends ​

CachedManager<number, Chat>

Constructor ​

ts
new ChatsManager( client )
ParameterTypeDescription
clientClient

Properties ​

get cache : Collection<CachedManager.K, CachedManager.V> ​

readonly client : Client ​

readonly default? : any ​

readonly options : any ​

Methods ​

_add( packet, cache, param2 ) ​

Add data with cache check to the current manager.

ParameterTypeDescription
packetany
cache?booleanPass True to cache the data.
param2 = {}anyAdditional data to pass.

Returns: any

asyncfetch( chat_id ) ​

ParameterTypeDescription
chat_idnumber

Returns: Promise<boolean | Chat>