I want to send a direct message using a bot to a person who doesn't share a common guild with the bot. For this I need to have the user ID of the person but in my use case I'm only having access to the username + discriminator. Is there a way to obtain the ID using the username?
Something like..
user_id = client.fetch_user("bob#0000")
user=await client.get_user_info(user_id)
await client.send_message(user, "message")