Checking for Broadcaster

Currently I check that a message came from a MOD by using this:
if (tags.mod == true) { do something here }

My question is if there is a way to test for the broadcaster in a similar way: e.g
If (tags.broadcaster == true) <— will this work? If not, how do I check that the message is a broadcaster’s ?

Thanks

The correct way to check a users role is to see what badges they have, as that will indicate if they’re a broadcaster or moderator. The moderator tag is deprecated, and should not be used.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.