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

I meant to say 20 messages, not 40. I sincerely doubt my bot would reach 40 messages in 30 seconds, but 20 messages in 30 seconds is, while still fairly high, definitely within reason.

I’m assuming my bot is going to get unmodded and cause this to happen because it’s a possibility. It’s definitely not going to be happening every day, but I’d have liked to have been able to avoid it.

By the way Matt, sending /mods also counts towards the rate limit, so the same problem exists with that anyway.

It looks like there’s just no good way to avoid this besides just hoping the bot doesn’t get unmodded. That’s unfortunate.