I'm pretty new to python and well, I wanted to make a discord bot that sends a dm, and when the other user receives the dm, they answer back, and the owner of the code or an admin of a server will be able to see what it says!
Here is my code so far for the dm:
@client.command()
async def dm(ctx, user: discord.User, *, message):
await user.send(message)
How do I make it so that i can see what the user replied to the bot?
For this, you can use
client.wait_for()withcheck(), so add this afterawait user.send(message):all if this is in your
dmfunction.References:
wait_for(event, *, check=None, timeout=None)