async def METHOD_NAME(self, interaction: discord.Interaction, value: str) -> discord.AutoModRule:
    assert interaction.guild is not None
    try:
        return await interaction.guild.fetch_automod_rule(int(value))
    except discord.NotFound:
        raise app_commands.TransformerError("Automod rule not found.", discord.AppCommandOptionType.string, self)