Answer the question
In order to leave comments, you need to log in
Messages not being sent to discord.py, what's the problem?
The discord bot cannot send a message to the user. The error below says that the user with this id does not exist, so it returns a None object, and the None object does not have a send attribute.
And it all worked before.
member = bot.get_user(int(executor))
await member.send(f"Заказ №{order_id} оплачен.")
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question