Get Member
discord.get_member
ActionChat & messagingconnection required
Calls the Discord API with the connection's credentials.
Fetch one server member, with their roles and nickname.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Discord
- Secret shape
- the bot token (sent as "Authorization: Bot <token>") for every op except discord.execute_webhook, whose secret is the webhook URL
- Resolved by
- config.connection_id, else node.connection_id
Configuration
2 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
guild_id Id of the Discord server (right-click the server → Copy Server ID). | string | Yes | — | — | — |
user_id Id of the member's Discord user account. | string | Yes | — | — | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
nick The member's server nickname, if they have one. | string | — |
roles Ids of the roles the member holds. | array | — |
joined_at When they joined the server (ISO-8601). | string | — |
user.id Id of the member's user account. | string | — |
user.username The member's username. | string | — |
{
"joined_at": "",
"nick": "",
"roles": [],
"user": {
"id": "",
"username": ""
}
}Notes
- Needs a Discord connection whose secret is the bot token.
See Get Member run in a workflow.
In a technical demo we add the Discord connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.