Readonly
cacheStatic
defaultShared default max size for all managers (can be changed globally).
Adds a raw object to the cache, constructing the holdable class. Automatically evicts oldest entries if the max size is exceeded.
Optional
last_message_id?: null | stringOptional
description?: null | stringOptional
icon?: Optional
last_message_id?: null | stringOptional
nsfw?: booleanOptional
permissions?: null | numberFormat: int64
Optional
default_permissions?: null | { a: number; d: number }Optional
description?: null | stringOptional
icon?: Optional
last_message_id?: null | stringOptional
nsfw?: booleanOptional
role_permissions?: { [key: string]: { a: number; d: number } }Optional
default_permissions?: null | { a: number; d: number }Optional
description?: null | stringOptional
icon?: Optional
nsfw?: booleanOptional
role_permissions?: { [key: string]: { a: number; d: number } }Remove an entry by id.
used to delete a channel
The channel to delete
A promise that resolves when the channel is deleted
used to fetch a channel
The channel to fetch
Whether to force fetch the channel using the api or return it form cache if able
A promise that resolves with the fetched channel
resolves a channel from a string or a channel object
The channel to resolve
the resolved channel or null if not found
resolves a channel id from a string or a channel object
The channel to resolve
the resolved channel id or null if not found
Adjust the maximum size for this manager at runtime.
Insertion ordered cache of items this manager holds.