Added config for handler timeout duration

This commit is contained in:
RogueException
2017-04-02 14:49:04 -03:00
parent f0202e4d4e
commit 58d2de2578
2 changed files with 11 additions and 13 deletions

View File

@@ -33,8 +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;
/// <summary> Gets or sets the timeout for event handlers, in milliseconds, after which a warning will be logged. Null disables this check. </summary>
public int? HandlerTimeout { get; set; } = 3000;
public DiscordSocketConfig()
{