warn
Warns a user in the specified broadcaster's chat room, preventing them from chat interaction until the warning is acknowledged. New warnings can be issued to a user when they already have a warning in the channel (new warning will replace old warning).
Parameters
broadcasterId
the ID of the channel in which the warning will take effect.
moderatorId
the ID of the twitch user who requested the warning.
userId
the ID of the twitch user to be warned.
reason
a custom reason for the warning. Max 500 chars.