public async Task JoinAudioAsync(Discord.IVoiceChannel channel) { await LeaveAudioAsync(); IAudioClient client = await channel.ConnectAsync(); if (AudioPlayer == null) { AudioPlayer = new Audio.AudioStreamer(client); } else { await AudioPlayer.StopAsync(); AudioPlayer.AudioClient = client; } }
public VCTopicData(DateTime d, Discord.IVoiceChannel vc) { dateTime = d; voiceChannel = vc; }