mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00:00
20 lines
693 B
TypeScript
20 lines
693 B
TypeScript
import type { Snowflake } from "../../util/Snowflake.ts";
|
|
import type { Session } from "../../session/Session.ts";
|
|
import type { ChannelTypes, DiscordChannel } from "../../vendor/external.ts";
|
|
import BaseVoiceChannel from "./BaseVoiceChannel.ts";
|
|
import TextChannel from "./TextChannel.ts";
|
|
|
|
export class VoiceChannel extends BaseVoiceChannel {
|
|
constructor(session: Session, data: DiscordChannel, guildId: Snowflake) {
|
|
super(session, data, guildId);
|
|
this.type = data.type as number;
|
|
}
|
|
override type: ChannelTypes.GuildVoice;
|
|
}
|
|
|
|
export interface VoiceChannel extends TextChannel, BaseVoiceChannel {}
|
|
|
|
TextChannel.applyTo(VoiceChannel);
|
|
|
|
export default VoiceChannel;
|