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

Sending /mods counts as one of those 40 lines by the way…