Skip to main content
Version: 5.9.6

SetTimeoutMessage

public void SetTimeoutMessage(string message);

Parameter

ValueTypeDescriptiondefault
messagestringSuccess/failure informationConnection 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.");