Discord Bot icon

Discord Bot

Send messages and manage slash commands for Discord bots

Edit Role

AI-generated

Summary

Update selected fields on a Discord role in the specified guild. The operation requires a guild ID and role ID, and at least one role edit field must be set.

Inputs

  • Guild ID (required) — ID of the guild containing the role; can be passed from a trigger with {{ $JSON.guildId }}.
  • Role ID (required) — ID of the role to edit.
  • Role Edit Fields (required) — Set one or more fields: Color, Display Separately (Hoist), Mentionable, Name, or Reason. Reason is recorded in the guild audit log.

Output shape

a single role record

Returns the updated role.

Links

Discussion