Discord create channel

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

Discord create channel is an AI agent skill from the GitHub repository evolution-foundation/evo-nexus. 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.

How to use this skill

Skill file

Discord Create Channel

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.

When to Use This Skill

Use this skill when the user wants to:

Prerequisites

Channel Types

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

Instructions

When the user requests to create a Discord channel:

  1. Validate Requirements
  1. Prepare Channel Properties
  1. Make the API Request

Use the following curl command structure:

```bash

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:

  1. Handle Response
  1. Report Results

Channel Name Validation

Discord channel names must follow these rules:

Valid names:

Invalid names:

Creating Different Channel Types

Text Channel (Type 0)

{
  "name": "general-chat",
  "type": 0,
  "topic": "General discussion for all members"
}

Voice Channel (Type 2)

{
  "name": "voice-lounge",
  "type": 2,
  "user_limit": 10
}

Category (Type 4)

{
  "name": "Community",
  "type": 4
}

Announcement Channel (Type 5)

{
  "name": "server-updates",
  "type": 5,
  "topic": "Official server announcements"
}

Stage Channel (Type 13)

{
  "name": "community-stage",
  "type": 13
}

Setting Channel in Category

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.

Channel Permissions

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:

Common permission values:

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."
        }
      ]
    }
  }
}

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

Response Object

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
}

Best Practices

  1. Naming Conventions
  1. Organization
  1. Channel Limits
  1. Permissions
  1. Voice Channels

Security Notes

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.