feature: warn on invalid gateway intents (#1948)

This commit is contained in:
Quin Lynch
2021-11-26 11:30:19 -04:00
committed by GitHub
parent 82276e351a
commit 51e06e9ce1
2 changed files with 56 additions and 0 deletions

View File

@@ -183,6 +183,11 @@ namespace Discord.WebSocket
/// </remarks>
public GatewayIntents GatewayIntents { get; set; } = GatewayIntents.AllUnprivileged;
/// <summary>
/// Gets or sets whether or not to log warnings related to guild intents and events.
/// </summary>
public bool LogGatewayIntentWarnings { get; set; } = true;
/// <summary>
/// Initializes a new instance of the <see cref="DiscordSocketConfig"/> class with the default configuration.
/// </summary>