From edee55b196629c1ce5838abf89e76f736a4605ca Mon Sep 17 00:00:00 2001 From: Casino Boyale Date: Tue, 1 Oct 2019 21:08:11 +0100 Subject: [PATCH] fixed stuffz --- src/Discord.Net.WebSocket/DiscordSocketApiClient.cs | 4 ++-- src/Discord.Net.WebSocket/DiscordSocketClient.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Discord.Net.WebSocket/DiscordSocketApiClient.cs b/src/Discord.Net.WebSocket/DiscordSocketApiClient.cs index 6e2c19ffa..5ed2a7614 100644 --- a/src/Discord.Net.WebSocket/DiscordSocketApiClient.cs +++ b/src/Discord.Net.WebSocket/DiscordSocketApiClient.cs @@ -215,7 +215,7 @@ namespace Discord.API await _sentGatewayMessageEvent.InvokeAsync(opCode).ConfigureAwait(false); } - public async Task SendIdentifyAsync(IActivity activity = null, UserStatus status = UserStatus.Online, int largeThreshold = 100, int shardID = 0, int totalShards = 1, RequestOptions options = null) + public async Task SendIdentifyAsync(bool guildSubscriptions, IActivity activity = null, UserStatus status = UserStatus.Online, int largeThreshold = 100, int shardID = 0, int totalShards = 1, RequestOptions options = null) { var gameModel = new Game(); // Discord only accepts rich presence over RPC, don't even bother building a payload @@ -244,7 +244,7 @@ namespace Discord.API Token = AuthToken, Properties = props, LargeThreshold = largeThreshold, - Presence = args + Presence = args, GuildSubscriptions = guildSubscriptions }; if (totalShards > 1) diff --git a/src/Discord.Net.WebSocket/DiscordSocketClient.cs b/src/Discord.Net.WebSocket/DiscordSocketClient.cs index 91a7744ab..227a65329 100644 --- a/src/Discord.Net.WebSocket/DiscordSocketClient.cs +++ b/src/Discord.Net.WebSocket/DiscordSocketClient.cs @@ -246,7 +246,7 @@ namespace Discord.WebSocket else { await _gatewayLogger.DebugAsync("Identifying").ConfigureAwait(false); - await ApiClient.SendIdentifyAsync(Activity, Status, shardID: ShardId, totalShards: TotalShards).ConfigureAwait(false); + await ApiClient.SendIdentifyAsync(_guildSubscriptions, Activity, Status, shardID: ShardId, totalShards: TotalShards).ConfigureAwait(false); } //Wait for READY @@ -509,7 +509,7 @@ namespace Discord.WebSocket _sessionId = null; _lastSeq = 0; - await ApiClient.SendIdentifyAsync(Activity, Status, shardID: ShardId, totalShards: TotalShards).ConfigureAwait(false); + await ApiClient.SendIdentifyAsync(_guildSubscriptions, Activity, Status, shardID: ShardId, totalShards: TotalShards).ConfigureAwait(false); } break; case GatewayOpCode.Reconnect: