Get Channel

discord.get_channel
ActionChat & messagingconnection required

Calls the Discord API with the connection's credentials.

Fetch one channel by its id.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
Discord
Secret shape
the bot token (sent as "Authorization: Bot <token>") for every op except discord.execute_webhook, whose secret is the webhook URL
Resolved by
config.connection_id, else node.connection_id

Configuration

1 field, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
channel_id
Id of the Discord channel (right-click the channel → Copy Channel ID).
stringYes———

Output

One shape.

result

FieldTypeExample
id
Id of the channel.
string—
type
Discord channel type (0 text, 2 voice, 4 category, 15 forum…).
number—
guild_id
Server the channel belongs to.
string—
name
Channel name.
string—
topic
Channel topic.
string—
parent_id
Category the channel sits under.
string—
position
Sort position in the channel list.
number—
nsfw
True when the channel is marked age-restricted.
boolean—
{
  "guild_id": "",
  "id": "",
  "name": "",
  "nsfw": false,
  "parent_id": "",
  "position": 0,
  "topic": "",
  "type": 0
}

Notes

  • Needs a Discord connection whose secret is the bot token.

See Get Channel run in a workflow.

In a technical demo we add the Discord connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.