Discord Bot icon

Discord Bot

Send messages and manage slash commands for Discord bots

Create Role

AI-generated

Summary

Creates a role in the specified Discord guild. You can set its name and optionally customize its color, member-list display, mentionability, and audit-log reason.

Inputs

  • Guild ID (required) — ID of the guild where the role will be created; can be passed from a trigger, for example {{ $JSON.guildId }}.
  • Role Name (required) — Name for the new role, up to 100 characters.
  • Color — Optional role color, such as #5865F2.
  • Display Separately (Hoist) — Whether to show members with this role separately in the member list; defaults to false.
  • Mentionable — Whether anyone can mention this role; defaults to false.
  • Reason — Reason recorded in the guild audit log.

Output shape

A single n8n item containing the created role data.

The provided source pack omits the operation implementation body, so the exact returned fields and whether the node wraps the Discord role object cannot be confirmed.

Links

Discussion