From b323d6338372303fb377a6ea75d39793da36218c Mon Sep 17 00:00:00 2001 From: moiph Date: Sun, 14 Jun 2020 10:16:51 -0700 Subject: [PATCH] Feedback --- src/Discord.Net.Core/GatewayIntents.cs | 2 ++ src/Discord.Net.WebSocket/DiscordSocketApiClient.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Discord.Net.Core/GatewayIntents.cs b/src/Discord.Net.Core/GatewayIntents.cs index 47cdcd358..e58fc07d1 100644 --- a/src/Discord.Net.Core/GatewayIntents.cs +++ b/src/Discord.Net.Core/GatewayIntents.cs @@ -5,6 +5,8 @@ namespace Discord [Flags] public enum GatewayIntents { + /// This intent includes no events + None = 0, /// This intent includes GUILD_CREATE, GUILD_UPDATE, GUILD_DELETE, GUILD_ROLE_CREATE, GUILD_ROLE_UPDATE, GUILD_ROLE_DELETE, CHANNEL_CREATE, CHANNEL_UPDATE, CHANNEL_DELETE, CHANNEL_PINS_UPDATE Guilds = 1 << 0, /// This intent includes GUILD_MEMBER_ADD, GUILD_MEMBER_UPDATE, GUILD_MEMBER_REMOVE diff --git a/src/Discord.Net.WebSocket/DiscordSocketApiClient.cs b/src/Discord.Net.WebSocket/DiscordSocketApiClient.cs index 9702a1031..1b21bd666 100644 --- a/src/Discord.Net.WebSocket/DiscordSocketApiClient.cs +++ b/src/Discord.Net.WebSocket/DiscordSocketApiClient.cs @@ -226,7 +226,7 @@ namespace Discord.API msg.ShardingParams = new int[] { shardID, totalShards }; if (gatewayIntents.HasValue) - msg.Intents = Convert.ToInt32(gatewayIntents); + msg.Intents = (int)gatewayIntents.Value; else msg.GuildSubscriptions = guildSubscriptions;