mirror of
https://github.com/jaronpate/unicord.git
synced 2026-10-18 21:47:40 +00:00
feat: Add Channels cache to Client with ObjectCache implementation
This commit is contained in:
@@ -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']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user