Skip to main content

Discord setup guidelines ๐Ÿ“œ - get all channels & categories of a Discord server

Workflow preview

Workflow preview
100%
Discord setup guidelines ๐Ÿ“œ - get all channels & categories of a Discord server preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Test Your n8n Discord Connection! Trying to connect n8n to your Discord server but not sure where to start? Setting up a Discord Bot and its credentials can be confusing. This workflow provid...

Best for

  • Social Media automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.set, n8n-nodes-base.merge, n8n-nodes-base.if, n8n-nodes-base.discord, n8n-nodes-base.noop, n8n-nodes-base.manualtrigger, n8n-nodes-base.executeworkflowtrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by EoCi - Mr.Eo.

Original n8n.io source

1.1 Workflow description

Title
Discord setup guidelines ๐Ÿ“œ - get all channels & categories of a Discord server
Workflow name
Discord setup guidelines ๐Ÿ“œ - get all channels & categories of a Discord server

๐ŸŒŸ Test Your n8n Discord Connection!

Trying to connect n8n to your Discord server but not sure where to start? ๐Ÿค” Setting up a Discord Bot and its credentials can be confusing. This workflow provides the perfect starting point, guiding you through the connection and running a test to fetch all channels from your server, confirming everything works!


๐ŸŽฏ What This Does

This workflow is a "getting started" template designed to solve one primary problem: creating and verifying your first Discord connection in n8n.

Its main benefit is demystifying the Discord Bot setup process. It proves your connection is successful by connecting to your server and fetching a complete list of all channels and categories. It's the perfect first step for any n8n user, community manager, or developer who wants to build Discord automations but needs a clear, working starting point.


๐Ÿ”„ How It Works

Manual Trigger: You start the workflow by clicking 'Execute workflow'.

Set Server ID: A 'Set' node is pre-configured to hold your specific Discord Server ID.

Get Channels List: The Discord node uses your credentials and the Server ID to connect to Discord and retrieve a list of all channels and categories on that server.

Separate Channels & Categories: An 'IF' node automatically sorts the list, sending channels down one path and categories down another.

Process & Merge: Two 'Set' nodes clean up the data from each path, and a 'Merge' node combines them back into one organized list.

Next Step!: The workflow finishes at a 'NoOp' node. You can click the 'Merge' node to see the final output a full list of your server's channels.

Nodes Used

  • When clicking โ€˜Execute workflowโ€™ (Manual Trigger)
  • Set - Server ID (Set)
  • Get channels list (Discord)
  • Separate Category & Channel (IF)
  • Get Channels (Set)
  • Get Server's Categories (Set)
  • Merge (Merge)
  • Next Step ! (NoOp)

Setup Requirements ๐Ÿ“œ

Credentials: Discord Bot Token (created via the Discord Developer Portal). Accounts: A Discord account. Specifics:

  • A Discord Server you own or have admin permissions for.
  • Developer Mode enabled in your Discord client (to copy your Server ID).
  • A Server ID from your server to test with.
  • Estimated Setup Time: < 10 minutes.

Set up steps

  • Part 1: Create Your Discord Bot & Get Token
    • Go to the Discord Developer Portal: Navigate to discord.com/developers/applications and log in.
    • Create New Application: Click the New Application button in the top right. Give it a name (e.g., "n8n Bot") and click Create.
    • Access Your Bot: On the left-hand menu, click the Bot tab, then Add Bot.
    • Get Your Bot Token: Under the bot's username, find the Token section. Click Reset Token (and confirm) to reveal your bot's token.
    • Copy the Token: This is your secret credential. Copy this token and keep it safe.
  • Part 2: Invite Your Bot to Your Server Go to URL Generator: Back in the Discord Developer Portal, go to the OAuth2 tab and then URL Generator.
    • Select Scopes: In the Scopes box, check the bot checkbox.
    • Set Permissions: A new Bot Permissions box will appear. Check the View Channels permission. This is all that's needed for this workflow.
    • Copy Invite URL: Scroll down and copy the Generated URL.
    • Invite Bot: Paste this URL into a new browser tab. Select the server you want to add the bot to, click Continue, and then Authorize.
  • Part 3: Add Credentials to n8n
    • Open Credentials: In n8n, go to Credentials > Create Credential.
    • Select Credential Type: Search for and select Discord Bot API.
    • Paste Your Token: Give your credential a 'Name' (e.g., "My Discord Bot"). Paste the Bot Token you copied from Part 1 into the Bot Token field.
    • Save: Click Save to store your new credentials.
    • Link Credential: Back in the workflow, click the Get channels list node. In the 'Credentials' parameter, select the credential you just created.
  • Part 4: Configure and Test the Workflow Enable Developer Mode: In your Discord desktop app, go to User Settings (the gear icon) > App Settings > Advanced and turn on Developer Mode.
    • Copy Server ID: Go to your Discord server, right-click on the server icon (on the left), and click Copy Server ID.
    • Configure n8n Node: Back in your n8n workflow, click the Set - Server ID node.
    • Paste Server ID: In the 'Value' field for server_id, replace the placeholder value with the Server ID you just copied.
    • Execute Workflow: Click Execute workflow in the top right corner.

If it succeeds, all nodes will turn green. Click the Merge node and select the 'Output' tab to see a complete JSON list of all channels and categories from your server. Congratulations, you're connected!

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note11

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Set - Server ID

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 10 - Get Server's Categories

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 11 - Get Channels

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 13 - Separate Category & Channel

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 14 - Get channels list

Type / Role
n8n-nodes-base.discord - discord
Config choices
Version 2

Block 15 - Next Step !

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 16 - When clicking โ€˜Execute workflowโ€™

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 17 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - When Executed by Another Workflow

Type / Role
n8n-nodes-base.executeWorkflowTrigger - executeWorkflowTrigger
Config choices
Version 1.1

Block 19 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note10

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note12

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note13

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Discord setup guidelines ๐Ÿ“œ - get all channels & categories of a Discord server
Complexity advanced
Nodes 22
Categories Social Media
Author EoCi - Mr.Eo
Published 26 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10198/10198.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Discord setup guidelines ๐Ÿ“œ - get all channels & categories of a Discord server do?

Test Your n8n Discord Connection! Trying to connect n8n to your Discord server but not sure where to start? Setting up a Discord Bot and its credentials can be confusing. This workflow provid...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Social Media use case.