harmony/src/models/voice.ts

26 lines
636 B
TypeScript
Raw Normal View History

2020-12-01 08:24:49 +00:00
import { Guild } from "../structures/guild.ts"
import { VoiceChannel } from "../structures/guildVoiceChannel.ts"
import { Client } from './client.ts'
2020-12-01 08:24:49 +00:00
export interface VoiceOptions {
guild: Guild,
channel: VoiceChannel
}
export class VoiceClient {
client: Client
2020-12-01 08:24:49 +00:00
ws?: WebSocket
guild: Guild
channel: VoiceChannel
2020-12-01 08:24:49 +00:00
constructor(client: Client, options: VoiceOptions) {
this.client = client
2020-12-01 08:24:49 +00:00
this.guild = options.guild
this.channel = options.channel
}
async connect(): Promise<VoiceClient> {
2020-12-01 11:18:38 +00:00
// TODO(DjDeveloperr): Actually understand what the hell docs say
2020-12-01 08:24:49 +00:00
return this
}
}