Added RPC SpeakingStarted/Stopped events

This commit is contained in:
RogueException
2016-10-07 22:25:12 -03:00
parent 471089822b
commit d36675cb32
4 changed files with 30 additions and 8 deletions

View File

@@ -34,12 +34,18 @@ namespace Discord.Rpc
private readonly AsyncEvent<Func<Task>> _guildUpdatedEvent = new AsyncEvent<Func<Task>>();
//Voice
public event Func<Task> VoiceStateUpdated
public event Func<ulong, Task> SpeakingStarted
{
add { _voiceStateUpdatedEvent.Add(value); }
remove { _voiceStateUpdatedEvent.Remove(value); }
add { _speakingStarted.Add(value); }
remove { _speakingStarted.Remove(value); }
}
private readonly AsyncEvent<Func<Task>> _voiceStateUpdatedEvent = new AsyncEvent<Func<Task>>();
private readonly AsyncEvent<Func<ulong, Task>> _speakingStarted = new AsyncEvent<Func<ulong, Task>>();
public event Func<ulong, Task> SpeakingStopped
{
add { _speakingStopped.Add(value); }
remove { _speakingStopped.Remove(value); }
}
private readonly AsyncEvent<Func<ulong, Task>> _speakingStopped = new AsyncEvent<Func<ulong, Task>>();
//Messages
public event Func<RpcMessage, Task> MessageReceived