What's the best way to check if the bot's account is a moderator in the channel?

It’s connection limited, not user or IP, if what I’ve been told is correct.

My bot easily reaches 20 commands in 30 seconds in one channel. Often? No. But if a user wants to set up for example a command that replies to tildes with more tildes, and everybody spams tildes, reaching 20 messages in 30 seconds is totally possible.

Then if, for whatever reason, it gets unmodded shortly after that, for whatever reason, and it sends another glorious tilde, my bot’s now IP banned.

Again, I agree that it’s not really something that’s going to be happening often. Usually when a bot’s unmodded it’s not during a stream when chat’s active, because the channel owner decided it doesn’t want/need the bot anymore. But I was just wondering if it was possible to see whether or not my account was a moderator in the channel without sending a message.

I really hope they re-work how the rate limiting works.