RoboZhando/Zhando.cs
/// <summary>Starts listening to the text channel on the given voice channel.</summary>
Starts listening to the text channel on the given voice channel.
Starts listening to the text channel on the given voice channel .
public async Task ListenAsync(DiscordChannel textChannel, DiscordChannel voiceChannel)
        {
            Listener listener;
            if (listeners.TryGetValue(voiceChannel.Guild, out listener)) {
                listener.Disconnect();
                listener.Dispose();
            }
            listeners[textChannel.Guild] = listener = new Listener(textChannel, Synthesizer);
            await listener.ConnectAsync(voiceChannel);
        }
public async Task ListenAsync ( DiscordChannel textChannel , DiscordChannel voiceChannel ) { Listener listener ; if ( listeners . TryGetValue ( voiceChannel . Guild , out listener ) ) { listener . Disconnect ( ) ; listener . Dispose ( ) ; } listeners [ textChannel . Guild ] = listener = new Listener ( textChannel , Synthesizer ) ; await listener . ConnectAsync ( voiceChannel ) ; }
Starts listening to the text channel on the given voice channel.
Starts listening to the text channel on the given voice channel .
textChannel
DiscordChannel
voiceChannel
DiscordChannel