Browse Source

Adjust based on feedback #2

pull/984/head
Devoxin 8 years ago
parent
commit
669ba376e6
3 changed files with 7 additions and 6 deletions
  1. +1
    -1
      src/Discord.Net.WebSocket/BaseSocketClient.Events.cs
  2. +0
    -1
      src/Discord.Net.WebSocket/DiscordSocketClient.cs
  3. +6
    -4
      src/Discord.Net.WebSocket/SocketVoiceServer.cs

+ 1
- 1
src/Discord.Net.WebSocket/BaseSocketClient.Events.cs View File

@@ -165,7 +165,7 @@ 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/disconnects to a Discord voice server. </summary>
/// <summary> Fired when the bot connects to a Discord voice server. </summary>
public event Func<SocketVoiceServer, Task> VoiceServerUpdated public event Func<SocketVoiceServer, Task> VoiceServerUpdated
{ {
add { _voiceServerUpdatedEvent.Add(value); } add { _voiceServerUpdatedEvent.Add(value); }


+ 0
- 1
src/Discord.Net.WebSocket/DiscordSocketClient.cs View File

@@ -5,7 +5,6 @@ using Discord.Net.Converters;
using Discord.Net.Udp; using Discord.Net.Udp;
using Discord.Net.WebSockets; using Discord.Net.WebSockets;
using Discord.Rest; using Discord.Rest;
using Discord.WebSocket;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
using System; using System;


+ 6
- 4
src/Discord.Net.WebSocket/SocketVoiceServer.cs View File

@@ -9,11 +9,13 @@ namespace Discord.WebSocket
public string Endpoint { get; private set; } public string Endpoint { get; private set; }
public string Token { get; private set; } public string Token { get; private set; }


internal SocketVoiceServer(ulong GuildId, string Endpoint, string Token)
internal SocketVoiceServer(ulong guildId, string endpoint, string token)
{ {
this.GuildId = GuildId;
this.Endpoint = Endpoint;
this.Token = Token;
GuildId = guildId;
Endpoint = endpoint;
Token = token;
} }

private string DebuggerDisplay => $"SocketVoiceServer ({GuildId})";
} }
} }

Loading…
Cancel
Save