users_get_current
users_get_current
Section titled “users_get_current”Category: users
Fetch the authenticated bot/user profile (/users/@me).
When to use
Section titled “When to use”confirm bot identity; get bot ID for commands_list_guild etc.
When NOT to use
Section titled “When NOT to use”(no fields)
Returns
Section titled “Returns”\{id, username, global_name, avatar, bot, verified\}.
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 | |
verified | boolean | no |
Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | yes |
| Destructive | no |
| Idempotent | yes |
| Open-world | yes |
| Confirmation required | no |