View as Markdown
Discord Bot icon

Discord Bot ACTION

Create Guild Channel

Create a new channel for the guild. See the docs here
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Discord Bot account once, then configure and run Create Guild Channel from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "discord_bot-create-guild-channel",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    discord_bot: { authProvisionId: "apn_xxxxxxx" },
    guildId: "Guild",
    name: "Channel's name",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Create Guild Channel inputs
Property Type Description
guildId Guild string
Discord Guild where your channel lives
Required Dynamic
name Channel's name string
There is a 1-100 character channel name restriction
Required
type Channel type string
Please select a channel type. In case you want to create a Store channel please read the docs here. If you want to create a Stage Voice channel please read the docs here
Required
position Position integer
The position of the channel in the left-hand listing
Optional
topic Topic string
0-1024 character channel topic
Optional
nsfw NSFW boolean
Optional
bitrate Bitrate integer
The bitrate (in bits) of the voice channel; 8000 to 96000 (128000 for VIP servers).
Optional
rateLimitPerUser Rate limit per user integer
Amount of seconds a user has to wait before sending another message (0-21600); bots, as well as users with the permission manage_messages or manage_channel, are unaffected.
Optional
userLimit User limit integer
The user limit of the voice channel; 0 refers to no limit, 1 to 99 refers to a user limit.
Optional
parentId Category string
Id of the new parent category for a channel
Optional Dynamic
rolePermissions Roles to add string[]
Choose the roles you want to add to your channel
Optional Dynamic
memberPermissions Members to add string[]
Choose the members you want to add to your channel
Optional Dynamic

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
discord_bot-create-guild-channel
Version
1.0.1
App
Discord Bot
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes