TwitchClearChatMessages

Clear Twitch Chat

Signature

public bool TwitchClearChatMessages(bool bot = true)

Parameters

bot
bool
Default:
True
  • true - Clear all messages with bot account
  • false - Clear all messages with broadcaster account

Return Type

bool

Example

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;
    }
}