SetTimeoutMessage
public void SetTimeoutMessage(string message);
Parameter
Value | Type | Description | default |
---|---|---|---|
message | string | Success/failure information | Connection was terminated due to a lack of chat input for a long time. |
Description
When there is no chat input for the time set in the console, the chat server connection is terminated.
The message to be printed upon the termination of connection under the relevant condition is set.
The set message can be checked at the ErrorInfo of args in the handler below.
Backend.Chat.OnLeaveChannel = (LeaveChannelEventArgs args) => {}
Backend.Chat.OnLeaveGuildChannel = (LeaveChannelEventArgs args) => {}
Example
Backend.Chat.SetTimeoutMessage("Kicked out for not chatting.");