tools.discord_manage_roles module

Create, edit, delete Discord roles and manage role assignments.

async tools.discord_manage_roles.run(action, server_id, role_id=None, target_user_id=None, name=None, color=None, hoist=None, mentionable=None, permissions=None, position=None, reason=None, ctx=None)[source]

Execute this tool and return the result.

Parameters:
  • action (str) – The action value.

  • server_id (str) – The server id value.

  • role_id (str | None) – The role id value.

  • target_user_id (str | None) – The target user id value.

  • name (str | None) – Human-readable name.

  • color (str | None) – The color value.

  • hoist (bool | None) – The hoist value.

  • mentionable (bool | None) – The mentionable value.

  • permissions (int | None) – The permissions value.

  • position (int | None) – The position value.

  • reason (str | None) – The reason value.

  • ctx (ToolContext | None) – Tool execution context providing access to bot internals.

Returns:

Result string.

Return type:

str