mirror of
https://github.com/jaronpate/unicord.git
synced 2026-10-18 21:47:40 +00:00
Added channel api shape and class
This commit is contained in:
@@ -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']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user