Notification/read only
to mod someone it is
PRIVMSG #channel : .mod username
Generally these messages are batched up so they don’t occur instantly.
Secondly, they don’t work at all in channels with 1k+ people present (even with the cap on) and is generally considered unreliable.
The correct method is to test for the presence of the moderator badge in tags → bages
Worth nothing that whilst TMI (Twitch messaging interface) looks like IRC, it isn’t it just implements parts of IRC and uses the IRC messaging format. So don’t expect it to behave like IRC.