DEV Community

loading...

Discussion on: Get started with discord.py

Collapse
codeperfectplus profile image
Deepak Raj
@bot.command(name='hello', description="Greet the user!")
async def hello(ctx):
    await ctx.send(f"Hello {ctx.author.name}!") # f-string
Enter fullscreen mode Exit fullscreen mode

It's not working for me

Collapse
mikeywastaken profile image
Mikey Author

Is there an error, or is there just nothing happening?

Collapse
codeperfectplus profile image
Deepak Raj

It worked latter issue was due to other asynchronous function.

Thread Thread
mikeywastaken profile image
Mikey Author

Oh, ok! Glad it works for you then!