예제 #1
0
파일: Session.cs 프로젝트: Hydraosu/DuckBot
        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;
            }
        }
예제 #2
0
 public VCTopicData(DateTime d, Discord.IVoiceChannel vc)
 {
     dateTime     = d;
     voiceChannel = vc;
 }