-
#discord is not defined here for some reason after importing
bot = discord.Bot()
@bot.slash_command()
async def hello(ctx, name: str = None):
name = name or ctx.author.name
await ctx.respond(f"Hello {name}!")```
i followed the instructions to install using command line but it's been giving me this error |
Beta Was this translation helpful? Give feedback.
Answered by
Lulalaby
Apr 19, 2022
Replies: 1 comment
-
Consider joining https://discord.gg/pycord for help. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Dorukyum
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consider joining https://discord.gg/pycord for help.
Discussions are not the best place for this.