> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Create channel

> Create a text, voice, category, announcement, stage, forum, or media channel.

`discord.createChannel` create a text, voice, category, announcement, stage, forum, or media channel.

```ts automations/discord-create-channel.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { discord } from "automate.ax/discord"

export default automation("Create channel", () => {
  onHttpRequest({ scope: "automation" })
  discord.createChannel({
    guildId: "123456789012345678",
    name: "releases",
    type: "text",
  })
})
```

## Inputs

Required `guildId` and `name`. Optional `type`, `topic`, `parentId`, `position`, `nsfw`, `rateLimitPerUser`, and `reason`. Topics apply to text, announcement, forum, and media channels. Text and announcement topics accept up to 1,024 characters; forum and media topics accept up to 4,096. Voice and stage channels also accept `bitrate` and `userLimit`; stage `bitrate` is at most 64,000, voice user limit is at most 99, and stage user limit is at most 10,000. Category and announcement channels do not accept `rateLimitPerUser`; category and media channels do not accept `nsfw`; category channels do not accept `parentId`. Optional second argument `{ account }` selects the Discord binding.

## Output

Returns the created `DiscordChannel`.

## Discord behavior

Requires `MANAGE_CHANNELS`; server feature and tier limits still apply.
