How can I get a user id by their name?
client.users.get('name', 'name here').id
p.s. read the docs
p.s. learn javascript
Bruh
It depends where you're at. If you have access to a message, the best would be
message.server.members.get("name", "USERNAMEHERE").id;
otherwise you can also get it globally
client.users.get("name", "USERNAMEHERE").id;
Most helpful comment
Bruh