Discord Bot icon

Discord Bot

Send messages and manage slash commands for Discord bots

Add Role to Member

AI-generated

Summary

Adds the specified role to a member in a Discord guild.

Inputs

  • Guild ID (required) — ID of the guild containing the member; can be supplied from a trigger as {{ $JSON.guildId }}.
  • User ID (required) — Discord user ID of the member to update; can be supplied from a trigger as {{ $JSON.userId }}.
  • Role ID (required) — ID of the role to add.

Output shape

A single n8n item containing the operation result.

The provided source view does not show this operation's return handling, so the result's fields cannot be specified.

Links

Discussion