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)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "discord_bot-create-guild-channel",
"configured_props": {
"discord_bot": { "authProvisionId": "apn_xxxxxxx" },
"guildId": "Guild",
"name": "Channel'\''s name"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "discord_bot",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "discord_bot-create-guild-channel",
arguments: {
guildId: "Guild",
name: "Channel's name",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| 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
- Source
- View on GitHub ↗