G
G
Guerro692020-06-21 13:55:00
Python
Guerro69, 2020-06-21 13:55:00

Discord.py how to send message to user by ID?

How, knowing only the user ID, send him a message using
@bot.event
async def on_message(message)

NOT via @bot.command
member: discord.Member

I heard about discord.User but how to use it correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shurshur, 2020-06-21
@Guerro69

This is such a common question that it's answered right in the documentation: https://discordpy.readthedocs.io/en/latest/faq.htm...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question