|
@@ -1,4 +1,4 @@ |
|
|
using System; |
|
|
|
|
|
|
|
|
using System; |
|
|
using System.Threading.Tasks; |
|
|
using System.Threading.Tasks; |
|
|
|
|
|
|
|
|
namespace Discord.WebSocket |
|
|
namespace Discord.WebSocket |
|
@@ -165,6 +165,13 @@ namespace Discord.WebSocket |
|
|
remove { _userVoiceStateUpdatedEvent.Remove(value); } |
|
|
remove { _userVoiceStateUpdatedEvent.Remove(value); } |
|
|
} |
|
|
} |
|
|
internal readonly AsyncEvent<Func<SocketUser, SocketVoiceState, SocketVoiceState, Task>> _userVoiceStateUpdatedEvent = new AsyncEvent<Func<SocketUser, SocketVoiceState, SocketVoiceState, Task>>(); |
|
|
internal readonly AsyncEvent<Func<SocketUser, SocketVoiceState, SocketVoiceState, Task>> _userVoiceStateUpdatedEvent = new AsyncEvent<Func<SocketUser, SocketVoiceState, SocketVoiceState, Task>>(); |
|
|
|
|
|
/// <summary> Fired when the bot connects to a Discord voice server. </summary> |
|
|
|
|
|
public event Func<SocketVoiceServer, Task> VoiceServerUpdated |
|
|
|
|
|
{ |
|
|
|
|
|
add { _voiceServerUpdatedEvent.Add(value); } |
|
|
|
|
|
remove { _voiceServerUpdatedEvent.Remove(value); } |
|
|
|
|
|
} |
|
|
|
|
|
internal readonly AsyncEvent<Func<SocketVoiceServer, Task>> _voiceServerUpdatedEvent = new AsyncEvent<Func<SocketVoiceServer, Task>>(); |
|
|
/// <summary> Fired when the connected account is updated. </summary> |
|
|
/// <summary> Fired when the connected account is updated. </summary> |
|
|
public event Func<SocketSelfUser, SocketSelfUser, Task> CurrentUserUpdated { |
|
|
public event Func<SocketSelfUser, SocketSelfUser, Task> CurrentUserUpdated { |
|
|
add { _selfUpdatedEvent.Add(value); } |
|
|
add { _selfUpdatedEvent.Add(value); } |
|
|