from discord import commands error #694
Unanswered
Angelo9203
asked this question in
Help
Replies: 3 comments 1 reply
-
Hello @Angelo9203, so you could import commands you need to do "from discord.ext import commands" |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Hey @Angelo9203 I experience this error same , all you have to do is put discord.ext instead of discord , since there's no "command" in discord but in discord.ext |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
<<<<<import discord
from discord import commands
import os
client = commands.Bot(command_prefix="!", intents=discord.Intents.default())
@client.event
async def on_ready():
print("I am always ready, kiddo")
print("------------------------")
@client.command()
async def hello(ctx):
await ctx.send("Hello, I am ready for use!")
client.run('xxxxx')>>>>>
Thats my code. When i run it it gives me back an error ImportError: cannot import name 'commands' from 'discord'
pls help what should I do. I am very new to this so i dont have clue
Beta Was this translation helpful? Give feedback.
All reactions