agentleFS
Nice-Wolf-StudioNice-Wolf-Studio/agent-discord-skills/skills/discord-manage-channel/SKILL.md

discord-manage-channel

Skill16 starsChanged 14 months agoMITView on GitHub

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.

  • Sends data out

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 1

    1. evolution-foundation/evo-nexus★ 544100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository4 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

25 rules. About 0 are common, 25 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈25

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the user wants to:

    line 12
  2. Distinctive:

    Update a channel's topic/description

    line 14
  3. Distinctive:

    Update voice channel settings (user limit, bitrate)

    line 19
  4. Distinctive:

    When the user requests to manage a Discord channel:

    line 31
  5. Distinctive:

    Verify channel ID is provided (18-19 digit number)

    line 35
  6. Distinctive:

    Ensure bot has "Manage Channels" permission

    line 36
  7. Distinctive:

    Update (PATCH): Modify channel properties

    line 40
  8. Distinctive:

    Delete (DELETE): Remove channel permanently

    line 41
  9. Distinctive:

    If error occurs, explain clearly

    line 85
  10. Distinctive:

    Verify channel ID is correct

    line 213
  11. Distinctive:

    Wait 1 second between sequential channel updates

    line 269
  12. Distinctive:

    Check channel name follows Discord rules

    line 281
  13. Distinctive:

    Verify parent_id exists before moving

    line 282
  14. Distinctive:

    Always confirm before deleting channels

    line 286
  15. Distinctive:

    Add delays to respect rate limits

    line 291
  16. Distinctive:

    Update multiple properties in one request when possible

    line 292
  17. Distinctive:

    Use role permissions over user permissions when possible

    line 296
  18. Distinctive:

    Test permissions after updating

    line 298
  19. Distinctive:

    Follow server naming conventions

    line 301
  20. Distinctive:

    Use lowercase with hyphens

    line 302
  21. Distinctive:

    Keep names descriptive but concise

    line 303
  22. Distinctive:

    Keep related channels in same category

    line 306
  23. Distinctive:

    Use consistent naming within categories

    line 307
  24. Distinctive:

    Update category permissions to affect children

    line 308
  25. Distinctive:

    Don't expose channel IDs publicly

    line 313

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

  • Rename a Discord channel
  • Update a channel's topic/description
  • Change channel permissions
  • Move a channel to a different category
  • Reorder channel positions
  • Toggle NSFW status
  • Update voice channel settings (user limit, bitrate)
  • Delete a channel

Prerequisites

  • DISCORD_BOT_TOKEN environment variable must be set
  • Bot must be a member of the target server
  • Bot must have "Manage Channels" permission in the server
  • Valid Discord channel ID (18-19 digit snowflake ID)

Instructions

When the user requests to manage a Discord channel:

  1. Validate Requirements
    • Confirm DISCORD_BOT_TOKEN is set in environment
    • Verify channel ID is provided (18-19 digit number)
    • Ensure bot has "Manage Channels" permission
    • Validate any new values (name, topic, etc.)
  2. Determine Operation Type
    • Update (PATCH): Modify channel properties
    • Delete (DELETE): Remove channel permanently
  3. For Updates - Prepare Payload Include only the fields you want to change:
    • name: New channel name (2-100 chars, lowercase, hyphens/underscores)
    • topic: New topic (max 1024 chars for text channels)
    • position: New sort position (integer)
    • parent_id: Move to different category (category channel ID or null)
    • nsfw: Toggle NSFW status (true/false)
    • permission_overwrites: Update permissions (array)
    • user_limit: Voice channel user limit (0-99, 0 = unlimited)
    • bitrate: Voice channel bitrate (8000-96000 for non-boosted servers)
  4. Make the API Request

    Update Channel (PATCH):

    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):

    curl -X DELETE "https://discord.com/api/v10/channels/{CHANNEL_ID}" \
      -H "Authorization: Bot ${DISCORD_BOT_TOKEN}"
  5. Handle Response
    • 200 OK (Update): Channel updated successfully
    • 204 No Content (Delete): Channel deleted successfully
    • 400 Bad Request: Invalid parameters
    • 401 Unauthorized: Invalid bot token
    • 403 Forbidden: Missing "Manage Channels" permission
    • 404 Not Found: Channel doesn't exist
  6. Report Results
    • Confirm operation completed successfully
    • Show what was changed
    • For deletes, warn that operation is permanent
    • If error occurs, explain clearly

Updatable Properties

Text Channels

PropertyTypeDescriptionValidation
namestringChannel name2-100 chars, lowercase, hyphens/underscores
topicstringChannel topicMax 1024 characters
positionintegerSort positionPositive integer
parent_idsnowflakeCategory IDValid category ID or null
nsfwbooleanNSFW statustrue or false
permission_overwritesarrayPermission overridesArray of permission objects

Voice Channels

PropertyTypeDescriptionValidation
namestringChannel name2-100 chars
positionintegerSort positionPositive integer
parent_idsnowflakeCategory IDValid category ID or null
user_limitintegerMax users0-99 (0 = unlimited)
bitrateintegerAudio quality8000-96000 (higher for boosted)
permission_overwritesarrayPermission overridesArray of permission objects

Categories

PropertyTypeDescriptionValidation
namestringCategory name2-100 chars
positionintegerSort positionPositive integer
permission_overwritesarrayPermission overridesArray 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:

  • id: Role ID or User ID
  • type: 0 for role, 1 for user
  • allow: Bitwise permission value (permissions to grant)
  • deny: Bitwise permission value (permissions to deny)

Common permission bits:

  • 1024 (0x400): VIEW_CHANNEL
  • 2048 (0x800): SEND_MESSAGES
  • 4096 (0x1000): SEND_TTS_MESSAGES
  • 8192 (0x2000): MANAGE_MESSAGES
  • 16384 (0x4000): EMBED_LINKS
  • 32768 (0x8000): ATTACH_FILES
  • 65536 (0x10000): READ_MESSAGE_HISTORY
  • 1048576 (0x100000): CONNECT (voice)
  • 2097152 (0x200000): SPEAK (voice)

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

  • Channel updates use a shared rate limit bucket
  • Limit: 5 requests per 5 seconds per channel
  • For bulk updates, add delays between requests
  • Wait 1 second between sequential channel updates

Audit Log

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

  • Action type: Channel Update (11) or Channel Delete (12)
  • Includes: Who made the change, what changed, when
  • Visible to users with "View Audit Log" permission

Best Practices

  1. Validate Before Updating
    • Check channel name follows Discord rules
    • Verify parent_id exists before moving
    • Validate permission values
  2. Confirm Destructive Actions
    • Always confirm before deleting channels
    • Warn about permanent data loss
    • Suggest alternatives when appropriate
  3. Batch Updates Carefully
    • Add delays to respect rate limits
    • Update multiple properties in one request when possible
    • Handle partial failures gracefully
  4. Permission Management
    • Use role permissions over user permissions when possible
    • Document permission changes
    • Test permissions after updating
  5. Channel Names
    • Follow server naming conventions
    • Use lowercase with hyphens
    • Keep names descriptive but concise
  6. Category Organization
    • Keep related channels in same category
    • Use consistent naming within categories
    • Update category permissions to affect children

Security Notes

  • Validate channel belongs to expected server
  • Don't expose channel IDs publicly
  • Log channel deletions for audit trail
  • Require confirmation for destructive operations
  • Respect permission hierarchies

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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.