async def METHOD_NAME(interaction: discord.Interaction, current: str) -> list[app_commands.Choice[str]]:
    assert interaction.guild is not None
    rules = await interaction.guild.fetch_automod_rules()
    if current:
        choices = []
        for rule in rules:
            if rule.trigger.type is AutoModRuleTriggerType.keyword and current in rule.name:
                choices.append(app_commands.Choice(name=rule.name, value=str(rule.id)))
        return choices
    else:
        return [app_commands.Choice(name=rule.name, value=str(rule.id)) for rule in rules
                if rule.trigger.type is AutoModRuleTriggerType.keyword]