Answer the question
In order to leave comments, you need to log in
How to get the user ID from the message text in discord?
Hello! Guys, tell me who knows, I have a simple discordbot on Python. The task is the following, it is necessary that the bot respond only when the user accesses it. In the on_message event of a message, for example, the following "<@!798919118224490496> Hello!" As I understand it, the ID is enclosed in special characters, is there some method, maybe, that will allow me to understand that the appeal goes specifically to the bot?
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