Clear Chat Messages
Clear all chat messages
Variables
Name | Type | Description |
---|---|---|
Example Value: True/False indictator whether the clear has been uccessful or not |
C# Usage
Clear Twitch Chat
public bool TwitchClearChatMessages(bool bot = true)
botbooltrue
- Clear all messages with bot accountfalse
- Clear all messages with broadcaster account
using System;
public class CPHInline
{
public bool Execute()
{
//Clear chat
bool gotCleared = CPH.TwitchClearChatMessages(true);
if(gotCleared){
CPH.SendMessage("Message got cleared successfully!");
}
return true;
}
}