Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/harmony/src/managers/baseChild.ts>BaseChildManager

An easy to use Discord API Library for Deno.
Go to Latest
class BaseChildManager
extends Base
import { BaseChildManager } from "https://deno.land/x/harmony@v2.6.0/src/managers/baseChild.ts";

Child Managers validate data from their parents i.e. from Managers

Constructors

new
BaseChildManager(client: Client, parent: BaseManager<T, T2>)

Properties

readonly
cacheName: string
parent: BaseManager<T, T2>

Parent Manager

Methods

array(): Promise<T2[]>
collection(): Promise<Collection<string, T2>>
delete(_: string): Promise<boolean>
fetch(...args: unknown[]): Promise<T2 | undefined>
get(key: string): Promise<T2 | undefined>
keys(): Promise<string[]>
resolve(key: string): Promise<T2 | undefined>

Try to get value from cache, if not found then fetch

set(key: string, value: T): Promise<void>
size(): Promise<number>

Gets number of values stored in Cache

[Symbol.asyncIterator](): AsyncIterableIterator<T2>