Error when runing code discord.ext import app_commands

First, try this:

Then reload the shell.

Then, you need to fix your import. Possibly, app_commands is no longer part of discord.ext, it is just discord.app_commands?

from discord import app_commands
1 Like