0
votes

How do you send a normal message when a user types the command? I have tried using @client.command async def ping but it does not work D:

3

3 Answers

0
votes

You can use await ctx.send("Your message here"), make sure that you have Context passed in your @client.command. If you have anymore questions, feel free to ask me :)

0
votes

Use this as a guide if it helps

@client.command
async def ping(ctx):
await ctx.send("Your message")
0
votes

here ctx is the context and hi is command

Code:

@client.command
async def hi(ctx):
    await ctx.send("Message which you want to send")