public bool TwitchDeleteChatMessage(string messageId, bool bot = true)
Id of the message you want to delete
True
true - Delete the message with bot accountfalse - Delete the message with broadcaster accountbool
using System;
public class CPHInline
{
public bool Execute()
{
//Set message for chat
CPH.TryGetArg("msgId",out string messageId);
//Delete the message that was just send by a command/message
bool gotDeleted = CPH.TwitchDeleteChatMessage(messageId, true);
if(gotDeleted){
CPH.SendMessage("Message got deleted successfully!");
}
return true;
}
}