def METHOD_NAME(
    command_invoker: discord.User | discord.Member,
    message: discord.Message,
    reaction: discord.Reaction,
    user: discord.User
) -> bool:
    user_is_moderator = any(role.id in MODERATION_ROLES for role in getattr(user, "roles", []))
    user_is_invoker = user.id == command_invoker.id
    is_right_reaction = all((
        reaction.message.id == message.id,
        str(reaction.emoji) == "🔄",
        user_is_moderator or user_is_invoker
    ))
    return is_right_reaction