Fixed GUILD_UPDATE crash
This commit is contained in:
@@ -27,7 +27,7 @@ namespace Discord.API.Models
|
|||||||
|
|
||||||
//Servers
|
//Servers
|
||||||
public sealed class GuildCreate : ExtendedServerInfo { }
|
public sealed class GuildCreate : ExtendedServerInfo { }
|
||||||
public sealed class GuildUpdate : ExtendedServerInfo { }
|
public sealed class GuildUpdate : ServerInfo { }
|
||||||
public sealed class GuildDelete : ExtendedServerInfo { }
|
public sealed class GuildDelete : ExtendedServerInfo { }
|
||||||
|
|
||||||
//Channels
|
//Channels
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ namespace Discord
|
|||||||
}
|
}
|
||||||
public async Task DisconnectAsync()
|
public async Task DisconnectAsync()
|
||||||
{
|
{
|
||||||
if (_webSocket != null)
|
if (_tasks != null)
|
||||||
{
|
{
|
||||||
_cancelToken.Cancel();
|
_cancelToken.Cancel();
|
||||||
await _tasks;
|
await _tasks;
|
||||||
|
|||||||
Reference in New Issue
Block a user