how to get user id

user = bot.get_user(user_id)

Here is what the above code is Doing:
1. We’re creating a new instance of the Client class.
2. We’re running the login() function, which will connect to Discord and log us in.
3. We’re storing the user ID of the bot in a variable called user_id.
4. We’re using the get_user() function to get information about the user with the ID user_id.