-->

From Discord.ext Import Commands


-->

From Discord.ext Import Commands. There is no __init__.py file in discord.ext folder so how is it imported? Print(“ready”) @client.command() async def ping(ctx):

Discord.py Slash commands aren’t working Stack Overflow
Discord.py Slash commands aren’t working Stack Overflow from stackoverflow.com

Many times there comes a repetition in creating a bot command framework that is extensible, flexible, and powerful. You have to use discord.ext to import the commands extension. From discord.ext import commands error:

-->

Discord.py Slash commands aren’t working Stack Overflow

Print(“ready”) @client.command() async def ping(ctx): Print(“ready”) @client.command() async def ping(ctx): If you have other versions of python installed, make sure you installed discord.py on 3.7 and that you're using 3.7 to run the script. You have to use discord.ext to import the commands extension.

-->