users_get
users_get
Section titled “users_get”Category: users
Look up a public user profile by id (/users/\{user.id\}).
When to use
Section titled “When to use”- Resolve a username/avatar for a user id surfaced by another tool.
When NOT to use
Section titled “When NOT to use”- Fetching guild-specific member info →
members_get. Bot identity →users_get_current.
| Field | Type | Required | Description |
|---|---|---|---|
user_id | string | yes | Discord user id |
Returns
Section titled “Returns”\{id, username, global_name, avatar, bot, untrusted_text\}. username/global_name wrapped untrusted.
Output schema
Section titled “Output schema”| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | Discord user ID |
username | string | yes | |
global_name | unknown | yes | |
avatar | unknown | yes | |
bot | boolean | yes | |
untrusted_text | string | yes |
Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | yes |
| Destructive | no |
| Idempotent | yes |
| Open-world | yes |
| Confirmation required | no |