members_get_current_user
members_get_current_user
Section titled “members_get_current_user”Category: members
Fetch the current bot user’s own member entry in a guild via GET /users/@me/guilds/\{guild.id\}/member.
When to use
Section titled “When to use”- Discover the bot’s nick and role assignments in a target guild without needing the GUILD_MEMBERS intent.
When NOT to use
Section titled “When NOT to use”| Field | Type | Required | Description |
|---|---|---|---|
guild_id | string | yes | Guild to inspect |
Returns
Section titled “Returns”\{user_id, nick, roles, joined_at\}. nick (if present) is wrapped in \<untrusted_discord_username>.
Output schema
Section titled “Output schema”| Field | Type | Required | Description |
|---|---|---|---|
user_id | string | yes | Discord user ID |
nick | unknown | yes | |
roles | array | yes | |
joined_at | string | yes |
Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | yes |
| Destructive | no |
| Idempotent | yes |
| Open-world | yes |
| Confirmation required | no |