L
L
LirikDEV2022-03-11 11:14:06
Python
LirikDEV, 2022-03-11 11:14:06

How to make a bot message a response to a command?

There is a command, you need the bot to make an answer to it, like the user has a reply button.
I may be blind, but I didn't find this in the discord.py documentation

@client.command(aliases = ['test'])
async def __test(ctx, message):
    await ctx.send("test")


622b04ae494a4878950399.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vindicar, 2022-03-11
@LirikDEV

Maybe blind. You take the message
property from the context, you get the message object. It has a reply() method .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question