Discord User icon

Discord User

Complete Discord automation - Messages, Servers, Roles, Members, DMs

Role → Assign Role

AI-generated

Summary

Assigns a role to a member in a Discord server.

Inputs

  • serverId (required) — ID of the Discord server (guild).
  • roleId (required) — ID of the role to assign.
  • memberId (required) — ID of the member (user) to receive the role.

Output shape

object

For each input item, returns an object indicating success and the IDs involved. If the operation fails and continueOnFail is enabled, an error object is returned instead of throwing an error for that item.

Examples

Example 1: Assign role with ID '123456789012345678' to member '987654321098765432' in server '111222333444555666'

Server ID: 111222333444555666, Role ID: 123456789012345678, Member ID: 987654321098765432

Links

Discussion