Discord

Sends data to Discord

Member → Role Add

AI-generated

Summary

Add one or more roles to a specified member in a Discord server (guild).

Inputs

  • authentication — Choose the connection type: Bot Token, OAuth2, or Webhook (Webhook disables this operation).
  • guildId (required) — Select the Discord server (guild) where the member belongs.
  • userId (required) — Select the user to whom you want to assign roles, either by name or by ID. This is only available for Bot Token or OAuth2 authentication.
  • role (required) — Select one or more Discord roles to add to the specified member.

Output shape

a single JSON object containing the API response of the role addition request

The node sends a request to Discord's API to add roles to the member and returns the API response. This operation requires Bot Token or OAuth2 authentication; the Webhook option disables this operation.

Links

Discussion