xiaohongshu
xiaohongshu
discord-create-channel
Create new channels in Discord guilds/servers via the Discord API. Use this skill when the user wants to create text channels, voice channels, announcement channels, or categories in a Discord server.
Full skill instructions
Create new channels in Discord guilds (servers) using the Discord API v10. This skill supports creating text channels, voice channels, announcement channels, stage channels, and categories.
Use this skill when the user wants to:
DISCORD_BOT_TOKEN environment variable must be setDiscord supports the following channel types (use numeric value):
| Type | Value | Description |
|---|---|---|
| GUILD_TEXT | 0 | Text channel |
| GUILD_VOICE | 2 | Voice channel |
| GUILD_CATEGORY | 4 | Category (organizes channels) |
| GUILD_ANNOUNCEMENT | 5 | Announcement channel (one-way communication) |
| GUILD_STAGE_VOICE | 13 | Stage channel (audio events) |
When the user requests to create a Discord channel:
Validate Requirements
DISCORD_BOT_TOKEN is set in environmentPrepare Channel Properties
name: Channel name (required, 2-100 chars)type: Channel type (0=text, 2=voice, 4=category, 5=announcement, 13=stage)topic: Channel topic/description (optional, max 1024 chars for text channels)parent_id: Category ID to place channel in (optional)nsfw: Whether channel is NSFW (optional, default false)position: Sort position (optional)permission_overwrites: Permission overrides (optional, array)Make the API Request Use the following curl command structure:
curl -X POST "https://discord.com/api/v10/guilds/{GUILD_ID}/channels" \
-H "Authorization: Bot ${DISCORD_BOT_TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"name": "channel-name",
"type": 0
}'
Replace:
{GUILD_ID} with the actual guild ID"channel-name" with the desired channel name0 with the appropriate channel typeHandle Response
Report Results
Discord channel names must follow these rules:
Valid names:
generalgeneral-chatvoice-room-1announcementsInvalid names:
General Chat (has spaces and capital letters)chat! (has special character)a (too short)café (has accented character){
"name": "general-chat",
"type": 0,
"topic": "General discussion for all members"
}
{
"name": "voice-lounge",
"type": 2,
"user_limit": 10
}
{
"name": "Community",
"type": 4
}
{
"name": "server-updates",
"type": 5,
"topic": "Official server announcements"
}
{
"name": "community-stage",
"type": 13
}
To place a new channel in an existing category:
{
"name": "new-channel",
"type": 0,
"parent_id": "123456789012345678"
}
The parent_id is the ID of the category channel.
To set custom permissions when creating a channel:
{
"name": "private-channel",
"type": 0,
"permission_overwrites": [
{
"id": "role_id_here",
"type": 0,
"allow": "1024",
"deny": "0"
}
]
}
Permission types:
type: 0 = Roletype: 1 = MemberCommon permission values:
1024 = View Channel2048 = Send Messages8192 = Read Message History65536 = Mention Everyone400 Bad Request - Invalid Name
{
"code": 50035,
"errors": {
"name": {
"_errors": [
{
"code": "BASE_TYPE_BAD_LENGTH",
"message": "Must be between 2 and 100 in length."
}
]
}
}
}
Solution: Ensure channel name is 2-100 characters and follows naming rules
403 Forbidden - Missing Permissions
{
"code": 50013,
"message": "Missing Permissions"
}
Solution: Bot needs "Manage Channels" permission in the server
404 Not Found - Invalid Guild
{
"code": 10004,
"message": "Unknown Guild"
}
Solution: Verify guild ID is correct and bot is member of the server
400 Bad Request - Invalid Category
{
"code": 50035,
"message": "Invalid parent_id"
}
Solution: Ensure parent_id is a valid category channel ID in the same guild
Successful channel creation returns:
{
"id": "987654321098765432",
"type": 0,
"guild_id": "123456789012345678",
"position": 0,
"permission_overwrites": [],
"name": "new-channel",
"topic": null,
"nsfw": false,
"last_message_id": null,
"parent_id": null
}
Naming Conventions
Organization
Channel Limits
Permissions
Voice Channels
See examples.md for detailed usage scenarios.
POST /guilds/{guild.id}/channelsxiaohongshu
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