Beispiel #1
0
        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;
            }
        }
Beispiel #2
0
 public VCTopicData(DateTime d, Discord.IVoiceChannel vc)
 {
     dateTime     = d;
     voiceChannel = vc;
 }