TwitchDeleteChatMessage
Delete Twitch message via message id
Signature
public bool TwitchDeleteChatMessage(string messageId, bool bot = true)
Parameters
messageId
string required
Id of the message you want to delete
bot
bool
Default:
True
true- Delete the message with bot accountfalse- Delete the message with broadcaster account
Return Type
bool
Example
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;
}
}