Discord manage channel

From evolution-foundation/evo-nexus · View interactive version

Discord manage channel is an AI agent skill from the GitHub repository evolution-foundation/evo-nexus. Manage and update Discord channels via the Discord API. Use this skill when the user wants to modify channel properties, update names/topics, change permissions, or delete channels.

How to use this skill

Skill file

Discord Manage Channel

Manage and update Discord channels using the Discord API v10. This skill supports modifying channel properties including name, topic, position, permissions, and deleting channels.

When to Use This Skill

Use this skill when the user wants to:

Prerequisites

Instructions

When the user requests to manage a Discord channel:

  1. Validate Requirements
  1. Determine Operation Type
  1. For Updates - Prepare Payload

Include only the fields you want to change:

  1. Make the API Request

Update Channel (PATCH):

```bash

curl -X PATCH "https://discord.com/api/v10/channels/{CHANNEL_ID}" \

-H "Authorization: Bot ${DISCORD_BOT_TOKEN}" \

-H "Content-Type: application/json" \

-d '{

"name": "new-channel-name",

"topic": "New channel topic"

}'

```

Delete Channel (DELETE):

```bash

curl -X DELETE "https://discord.com/api/v10/channels/{CHANNEL_ID}" \

-H "Authorization: Bot ${DISCORD_BOT_TOKEN}"

```

  1. Handle Response
  1. Report Results

Updatable Properties

Text Channels

| Property | Type | Description | Validation |

|----------|------|-------------|------------|

| name | string | Channel name | 2-100 chars, lowercase, hyphens/underscores |

| topic | string | Channel topic | Max 1024 characters |

| position | integer | Sort position | Positive integer |

| parent_id | snowflake | Category ID | Valid category ID or null |

| nsfw | boolean | NSFW status | true or false |

| permission_overwrites | array | Permission overrides | Array of permission objects |

Voice Channels

| Property | Type | Description | Validation |

|----------|------|-------------|------------|

| name | string | Channel name | 2-100 chars |

| position | integer | Sort position | Positive integer |

| parent_id | snowflake | Category ID | Valid category ID or null |

| user_limit | integer | Max users | 0-99 (0 = unlimited) |

| bitrate | integer | Audio quality | 8000-96000 (higher for boosted) |

| permission_overwrites | array | Permission overrides | Array of permission objects |

Categories

| Property | Type | Description | Validation |

|----------|------|-------------|------------|

| name | string | Category name | 2-100 chars |

| position | integer | Sort position | Positive integer |

| permission_overwrites | array | Permission overrides | Array of permission objects |

Common Operations

Rename Channel

{
  "name": "new-channel-name"
}

Update Topic

{
  "topic": "New channel description or topic"
}

Move to Category

{
  "parent_id": "123456789012345678"
}

Remove from Category

{
  "parent_id": null
}

Toggle NSFW

{
  "nsfw": true
}

Update Voice Settings

{
  "user_limit": 10,
  "bitrate": 64000
}

Update Position

{
  "position": 5
}

Permission Overwrites

To update channel permissions:

{
  "permission_overwrites": [
    {
      "id": "role_or_user_id",
      "type": 0,
      "allow": "1024",
      "deny": "2048"
    }
  ]
}

Permission structure:

Common permission bits:

Deleting Channels

IMPORTANT: Channel deletion is permanent and cannot be undone.

Before deleting:

  1. Confirm with user that deletion is intentional
  2. Warn that all messages will be lost
  3. Suggest archiving as alternative if applicable
  4. Verify channel ID is correct

Delete command:

curl -X DELETE "https://discord.com/api/v10/channels/{CHANNEL_ID}" \
  -H "Authorization: Bot ${DISCORD_BOT_TOKEN}"

Error Handling

Common Errors

400 Bad Request - Invalid Name

{
  "code": 50035,
  "errors": {
    "name": {
      "_errors": [{
        "code": "BASE_TYPE_BAD_LENGTH",
        "message": "Must be between 2 and 100 in length."
      }]
    }
  }
}

403 Forbidden - Missing Permissions

{
  "code": 50013,
  "message": "Missing Permissions"
}

404 Not Found - Channel Doesn't Exist

{
  "code": 10003,
  "message": "Unknown Channel"
}

400 Bad Request - Invalid Parent

{
  "code": 50035,
  "message": "Invalid Form Body - parent_id: Unknown category"
}

Rate Limiting

Audit Log

Channel management actions are recorded in the server's audit log:

Best Practices

  1. Validate Before Updating
  1. Confirm Destructive Actions
  1. Batch Updates Carefully
  1. Permission Management
  1. Channel Names
  1. Category Organization

Security Notes

Response Objects

Update Response (200 OK)

Returns the updated channel object with all properties.

Delete Response (204 No Content)

Returns empty response on successful deletion.

Examples

See examples.md for detailed usage scenarios.

API Reference

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.