tools.discord_manage_channels module

Create, edit, and delete Discord channels.

async tools.discord_manage_channels.run(action, server_id=None, channel_id=None, name=None, category_id=None, topic=None, nsfw=None, slowmode_delay=None, bitrate=None, user_limit=None, position=None, ctx=None)[source]

Execute this tool and return the result.

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

  • server_id (str | None) – The server id value.

  • channel_id (str | None) – Discord/Matrix channel identifier.

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

  • category_id (str | None) – The category id value.

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

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

  • slowmode_delay (int | None) – The slowmode delay value.

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

  • user_limit (int | None) – The user limit value.

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

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

Returns:

Result string.

Return type:

str