mention user from string(name#discriminator) discord.py

Solution 1:

If you have both the username and discriminator, the best way to get that member would be like this:

member = message.guild.get_member_named("me#0000")

ALSO: Make sure you have enabled intents in your bot (discord.Intents.all()) and in your application in the Discord Dev Portal