Discord icon

Discord

Interact with Discord API - users, messages, webhooks, guilds, interactions, and more

Actions193

Role → Create

AI-generated

Summary

Creates a role in the specified Discord guild, using the provided role fields and optional raw JSON overrides. Returns the Discord API response for the created role.

Inputs

  • Authentication (required) — Choose Bot Token (default) or OAuth2 user token.
  • Guild (required) — Discord guild ID.
  • Name — Role name.
  • Color — Role color as a decimal integer.
  • Permissions — Permission bit set as a string.
  • Raw JSON — Additional Discord role request body fields. Keys here override the simple fields when they overlap.
  • Request Options — Optional batching, SSL certificate validation, HTTP proxy, and request timeout settings.

Output shape

A single Discord role record per input item.

The record comes from Discord's create-role API response. Batching settings can split inputs into batches to throttle requests.

Links

Discussion