How can I check if a user has moderator privileges in a channel?

He means the user he wants to check whether it’s a moderator is not in the channel, so he won’t be in the list of active chatters/moderators.