Started adding IAudioClient incoming stream creation/destruction events

This commit is contained in:
RogueException
2017-03-31 03:59:12 -03:00
parent 5e94b97024
commit 158ce0f922
13 changed files with 94 additions and 58 deletions

View File

@@ -40,9 +40,9 @@ namespace Discord.WebSocket
public Task ModifyAsync(Action<VoiceChannelProperties> func, RequestOptions options = null)
=> ChannelHelper.ModifyAsync(this, Discord, func, options);
public async Task<IAudioClient> ConnectAsync()
public async Task<IAudioClient> ConnectAsync(Action<IAudioClient> configAction = null)
{
return await Guild.ConnectAudioAsync(Id, false, false).ConfigureAwait(false);
return await Guild.ConnectAudioAsync(Id, false, false, configAction).ConfigureAwait(false);
}
public override SocketGuildUser GetUser(ulong id)