Added channel api shape and class

This commit is contained in:
2025-02-15 11:05:59 -06:00
parent 8333ab2d44
commit fb81a55035
10 changed files with 170 additions and 21 deletions
+10
View File
@@ -0,0 +1,10 @@
import { Channel } from "../../types/channel";
import type { API } from "../api";
import type { Processor } from "../processor";
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']);
}
}