xiaohongshu
xiaohongshu
discord-manage-channel
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.
Full skill instructions
Manage and update Discord channels using the Discord API v10. This skill supports modifying channel properties including name, topic, position, permissions, and deleting channels.
Use this skill when the user wants to:
DISCORD_BOT_TOKEN environment variable must be setWhen the user requests to manage a Discord channel:
Validate Requirements
DISCORD_BOT_TOKEN is set in environmentDetermine Operation Type
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)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}"
Handle Response
Report Results
| 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 |
| 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 |
| 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 |
{
"name": "new-channel-name"
}
{
"topic": "New channel description or topic"
}
{
"parent_id": "123456789012345678"
}
{
"parent_id": null
}
{
"nsfw": true
}
{
"user_limit": 10,
"bitrate": 64000
}
{
"position": 5
}
To update channel permissions:
{
"permission_overwrites": [
{
"id": "role_or_user_id",
"type": 0,
"allow": "1024",
"deny": "2048"
}
]
}
Permission structure:
id: Role ID or User IDtype: 0 for role, 1 for userallow: Bitwise permission value (permissions to grant)deny: Bitwise permission value (permissions to deny)Common permission bits:
1024 (0x400): VIEW_CHANNEL2048 (0x800): SEND_MESSAGES4096 (0x1000): SEND_TTS_MESSAGES8192 (0x2000): MANAGE_MESSAGES16384 (0x4000): EMBED_LINKS32768 (0x8000): ATTACH_FILES65536 (0x10000): READ_MESSAGE_HISTORY1048576 (0x100000): CONNECT (voice)2097152 (0x200000): SPEAK (voice)IMPORTANT: Channel deletion is permanent and cannot be undone.
Before deleting:
Delete command:
curl -X DELETE "https://discord.com/api/v10/channels/{CHANNEL_ID}" \
-H "Authorization: Bot ${DISCORD_BOT_TOKEN}"
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"
}
Channel management actions are recorded in the server's audit log:
Validate Before Updating
Confirm Destructive Actions
Batch Updates Carefully
Permission Management
Channel Names
Category Organization
Returns the updated channel object with all properties.
Returns empty response on successful deletion.
See examples.md for detailed usage scenarios.
PATCH /channels/{channel.id}DELETE /channels/{channel.id}xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience