L
L
Lukas Tumas2020-06-20 11:27:49
Python
Lukas Tumas, 2020-06-20 11:27:49

How to send a private message to a specific user?

Hello! Straight to the point. I have a database where data about the connected user is recorded.
id INT,
name VARCHAR

How to send a message to a user by ID or nickname.
member: discord.Member - doesn't work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shurshur, 2020-06-20
@Lubitelok

Instead of discord.Member (server-specific user-guild) use discord.User (discord user regardless of the server). Find by id and call the send method from it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question