Check if a username on the channel is a mod

Well you wrote the bot so you can change what it does.

Or you are using a library, and then the library may present this data.

The GitHub I linked to is a “library less” solution to read Twitch Chat.

Without seeing your code I’m not sure what answer to give you