discord.py get username id of person through his message code example Example: how to get username with userid discord.py username = client.get_user(user_id)