Gate a command to a role
Restrict a chat command to subscribers, VIPs, moderators, or the broadcaster.Most commands should be open to everyone, but some (shoutouts, giveaways, mod tools) belong to a narrower group.
The recipe
- Add an On Chat Command trigger for your command.
- Set its minimum role to the lowest role allowed: Subscriber+, VIP+, Moderator+, or Broadcaster.
- Build the rest of the flow as usual. It only runs when a permitted viewer uses the command.
The role check happens before your flow runs, so you never have to test it by hand. See On Chat Command for the fields it binds.
