View as Markdown
Discord Bot icon

Discord Bot ACTION

Modify Channel

Update a channel's settings. See the docs here
  • Action
  • Writes data
  • Destructive
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Discord Bot account once, then configure and run Modify 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-modify-channel",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    discord_bot: { authProvisionId: "apn_xxxxxxx" },
    guildId: "Guild",
    channelId: "Channel",
  },
})

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.

Modify Channel inputs
Property Type Description
guildId Guild string
Discord Guild where your channel lives
Required Dynamic
channelId Channel string
Please select the channel you'd like to change its name
Required Dynamic
name Channel's name string
There is a 1-100 character channel name restriction
Required
icon Icon string
base64 encoded icon.
Optional
type Channel type string
Only conversion between text and news is supported and only in guilds with the 'NEWS' feature. See the channel types here.
Optional Dynamic
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
rtcRegion Channel voice region string
Channel voice region id, automatic when set to null.
Optional
videoQualityMode Video quality mode integer
The camera video quality mode of the voice channel.
Optional Dynamic
defaultAutoArchiveDuration Auto archive duration in minutes integer
The default duration for newly created threads in the channel, in minutes, to automatically archive the thread after recent activity.
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-modify-channel
Version
1.0.1
App
Discord Bot
Authentication
API key
Read-only
No
Destructive
Yes
Open world
Yes