lilybird
Version:
A bun-first discord api wrapper written in TS
11 lines • 645 B
TypeScript
import { CacheElementType } from "../enums/cache.js";
import type { CacheManagerStructure, Channel, Guild, Voice } from "../typings/index.js";
export declare class CachingManager<G = Guild.Structure, C = Channel.Structure, V = Voice.StateStructure> implements CacheManagerStructure {
readonly guilds: Map<string, G>;
readonly channels: Map<string, C>;
readonly voiceStates: Map<string, V>;
set(type: CacheElementType, id: string, payload: any): void;
get(type: CacheElementType, id: string): Record<string, unknown> | undefined;
delete(type: CacheElementType, id: string): boolean;
}
//# sourceMappingURL=manager.d.ts.map