Add configuration toggle to suppress Unknown dispatch warnings (#2162)

This commit is contained in:
MrCakeSlayer
2022-03-02 20:30:17 -05:00
committed by GitHub
parent 50d0000e26
commit 1ba96d6fbd
2 changed files with 8 additions and 1 deletions

View File

@@ -188,6 +188,11 @@ namespace Discord.WebSocket
/// </summary>
public bool LogGatewayIntentWarnings { get; set; } = true;
/// <summary>
/// Gets or sets whether or not Unknown Dispatch event messages should be logged.
/// </summary>
public bool SuppressUnknownDispatchWarnings { get; set; } = true;
/// <summary>
/// Initializes a new instance of the <see cref="DiscordSocketConfig"/> class with the default configuration.
/// </summary>