def __init__(self, function):
        """Construct a ModeratorRequired exception.

        :param function: The function that requires moderator access.

        """
        message = ('`{0}` requires a moderator '
                   'of the subreddit').format(function)
        super(ModeratorRequired, self).__init__(message)
Construct a ModeratorRequired exception.

        :param function: The function that requires moderator access.

        
rtv/packages/praw/errors.py