feat: Add Channels cache to Client with ObjectCache implementation

This commit is contained in:
2025-02-15 11:57:07 -06:00
parent 7f745d9a38
commit 1cafdbdcc8
2 changed files with 14 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
import { API } from "../api";
import { Processor } from "../processor";
import { Channel } from "../../types/channel";
import { ObjectCache } from "./cache";
export class Channels extends ObjectCache<Channel, Channel> {
constructor(api: API, processor: Processor) {
super(api, processor, 'channels', Channel, ['CHANNEL_CREATE', 'CHANNEL_UPDATE']);
}
}