TwitchUpdatePinnedMessageDuration
Update the duration of a pinned chat message
Signature
public bool TwitchUpdatePinnedMessageDuration(Int32? duration)
Parameters
duration
Int32?
The duration to pin the chat message for.
nullfor the pin to last till the end of the stream- between
30and1800- duration in seconds
Return Type
bool
Example
using System;
public class CPHInline
{
public bool Execute()
{
// update the pinned chat message to show for 60 seconds
CPH.TwitchUpdatePinnedMessageDuration(60);
return true;
}
}