Added slow/deadlocked event handler detection

This commit is contained in:
RogueException
2017-03-31 00:35:20 -03:00
parent bf0be82d15
commit 13d488f43b
3 changed files with 121 additions and 36 deletions

View File

@@ -33,6 +33,8 @@ namespace Discord.WebSocket
/// <summary> Gets or sets whether or not all users should be downloaded as guilds come available. </summary>
public bool AlwaysDownloadUsers { get; set; } = false;
/// <summary> Gets or sets whether or not warnings should be logged if an event handler is taking too long to execute. </summary>
public bool EnableHandlerTimeouts { get; set; } = true;
public DiscordSocketConfig()
{