I have this command in my discord bot, when I try to run my bot it says app_commands is not defined, am I supposed to define it somehow?
@app_commands.command(name="test-command", description="Test command with 2 choices.")
@app_commands.choices(choice=[
app_commands.Choice(name='choice1', value=1),
app_commands.Choice(name='choice2', value=2)
])
async def test_command(interaction: discord.Interaction, choice: str):
if choice == "choice1":
embed1 = discord.Embed(title="Choice 1", description="This is the response for choice 1.", color=0x2b2d31)
await interaction.response.send_message(embed=embed1)
elif choice == "choice2":
embed2 = discord.Embed(title="Choice 2", description="This is the response for choice 2.", color=0x2b2d31)
await interaction.response.send_message(embed=embed2)```