Check if a username on the channel is a mod

Chainging stuff off other people/services bots is a problem.

Since if SE sent the message. Then you only have information about SE.

Sounds like you need

instead. And you can use the API to check if the user is a mod, but you’ll have to convert the username to a userID via the users API first

Which will add latency.

Or maintain a cache of the moderators in your bot to cross check names against