seyfert/structures/Channel.ts
2022-06-25 16:29:19 -04:00

16 lines
486 B
TypeScript

import type { Model } from "./Base.ts";
import { ChannelTypes, DiscordChannel, Session, Snowflake } from "../mod.ts";
export abstract class Channel implements Model {
constructor(session: Session, data: DiscordChannel) {
this.id = data.id;
this.session = session;
this.name = data.name;
this.type = data.type;
}
readonly id: Snowflake;
readonly session: Session;
readonly name: string | undefined;
readonly type: ChannelTypes;
}