{
  "name": "Discord setup guidelines 📜 - get all channels & categories of a Discord server",
  "nodes": [
    {
      "id": "2cf75639-0528-49cc-85f5-37f0b5e27596",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -32,
        -368
      ],
      "parameters": {
        "width": 512,
        "height": 272,
        "content": "## 🎯 **Goal: Test Your Discord Connection**\nThis workflow demonstrates advanced Discord bot capabilities:\n✓ Fetch ALL channels from your Discord server at once\n✓ Automatically separate text channels f"
      }
    },
    {
      "id": "7cd1a882-fa13-4636-8a32-e21a4bd76989",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -32,
        400
      ],
      "parameters": {
        "width": 960,
        "height": 432,
        "content": "## 💡 **Setup: Get Discord Credentials**\n\n\n\n\n"
      }
    },
    {
      "id": "5257df00-7033-46a6-9444-0b8858658548",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        960,
        -384
      ],
      "parameters": {
        "width": 928,
        "height": 528,
        "content": "## 🌟 Customization Guide.\n\n"
      }
    },
    {
      "id": "d9164460-ea58-4030-ac85-b3fc7b22ed2a",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        960,
        160
      ],
      "parameters": {
        "width": 624,
        "height": 672,
        "content": "## ⚙️ Workflow Configuration\n### Get Server ID:\n  • Enable Developer Mode: Discord Settings → Advanced → ☑ Developer Mode\n  • Right-click your server icon → Copy Server ID\n  • Example format: 01234567"
      }
    },
    {
      "id": "a162b3c2-b458-4cd5-b589-51df7317086f",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -576,
        -304
      ],
      "parameters": {
        "width": 512,
        "height": 560,
        "content": "## 🤔 Troubleshooting Guide\n### Error 401 (Invalid Token):\n  Problem: Your Bot Token in n8n is wrong\n  ✓ Fix: Reset token in Discord Developer Portal → Bot → Reset Token\n  ✓ Update your n8n credential "
      }
    },
    {
      "id": "b7444a18-f092-41e6-8f28-4a019fe3eef1",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        496
      ],
      "parameters": {
        "width": 272,
        "height": 288,
        "content": "### Part 1: Create Bot & Get Token\n  1. Go to Discord Developer Portal → Applications\n  2. Click \"New Application\" → Name your bot\n  3. Navigate to \"Bot\" tab → Click \"Add Bot\"\n  4. Under Token section"
      }
    },
    {
      "id": "7238a674-f1ef-4dba-8890-52742cc308f4",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        288,
        480
      ],
      "parameters": {
        "width": 288,
        "height": 320,
        "content": "### Part 2: Invite Bot to Your Server\n  1. Go to OAuth2 → URL Generator\n  2. Scopes section: ☑ bot\n  3. Bot Permissions: \n     ☑ View Channels (required for v1.2)\n     ☑ Read Message History (for futu"
      }
    },
    {
      "id": "8d113480-89c5-465b-9f05-bc8e8eeba211",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        592,
        496
      ],
      "parameters": {
        "width": 304,
        "height": 288,
        "content": "### Part 3: Add Credentials to n8n\n  1. In n8n: Click \"Credentials\" (top-right) → Create New\n  2. Search for \"Discord Bot API\" → Select it\n  3. Credential Name: \"Testing\" (or match what's in workflow)"
      }
    },
    {
      "id": "947ad189-629a-498f-8e92-ad36a58ef4fd",
      "name": "Set - Server ID",
      "type": "n8n-nodes-base.set",
      "position": [
        192,
        -64
      ]
    },
    {
      "id": "9d4e20eb-6f49-4106-826d-8188df5762d4",
      "name": "Get Server's Categories",
      "type": "n8n-nodes-base.set",
      "position": [
        560,
        160
      ]
    },
    {
      "id": "65992ac6-8f49-463d-a5eb-7c6ae91edfd2",
      "name": "Get Channels",
      "type": "n8n-nodes-base.set",
      "position": [
        560,
        -96
      ]
    },
    {
      "id": "16d6cb20-01ff-445c-9141-8fd5b6e534a0",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        752,
        32
      ]
    },
    {
      "id": "5cab8a2c-7c05-4bf9-96a0-e342c33d121f",
      "name": "Separate Category & Channel",
      "type": "n8n-nodes-base.if",
      "position": [
        384,
        32
      ]
    },
    {
      "id": "dde1d5e6-3ee6-4d68-8e92-05a54ad36f6f",
      "name": "Get channels list",
      "type": "n8n-nodes-base.discord",
      "position": [
        192,
        160
      ]
    },
    {
      "id": "2db98987-f832-4fe9-a472-939e999f0b34",
      "name": "Next Step !",
      "type": "n8n-nodes-base.noOp",
      "position": [
        768,
        240
      ]
    },
    {
      "id": "e8bbcf8e-e95d-4103-9a8f-1faa7988b1df",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -16,
        -64
      ]
    },
    {
      "id": "aad42190-9fa4-4d9d-8fad-223e2f2ae766",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -576,
        272
      ],
      "parameters": {
        "width": 512,
        "height": 560,
        "content": "## 🙏 Thank You for Trying This Workflow!\nYour time and trust mean a lot! I truly appreciate you using this \nadvanced Discord template.\n### Your feedback shapes future updates:\n- 💡 Suggestions for impr"
      }
    },
    {
      "id": "e53db057-8a54-4547-9634-9abaf960ef8c",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -16,
        144
      ]
    },
    {
      "id": "47076256-50ff-499e-85a0-2a4075df5479",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        992,
        -336
      ],
      "parameters": {
        "width": 400,
        "height": 112,
        "content": "### **Change Server ID:**\n  • Update \"Set - Server ID\" node with different server\n  • Bot must be invited to that server first\n  • You can duplicate workflow for multiple servers"
      }
    },
    {
      "id": "401028dc-b871-4d42-b75c-9f148a91538c",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        992,
        -208
      ],
      "parameters": {
        "width": 400,
        "height": 128,
        "content": "### **Advanced: Multi-Server Operations:**\n  1. Replace \"Set - Server ID\" with \"Code\" node\n  2. Create array: [server_id_1, server_id_2, ...]\n  3. Add \"Loop Over Items\" before \"Get channels list\"\n  4."
      }
    },
    {
      "id": "806b1acf-1261-4f3f-9727-05aa0267c88b",
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        992,
        -64
      ],
      "parameters": {
        "width": 400,
        "height": 192,
        "content": "### **Pro Tips:**\n  ⚠️ Known Issue: \"channe_id\" has typo (missing 'l')\n     • Keep it for compatibility with existing workflows\n     • Or fix: Change in \"Get Channels\" node to \"channel_id\"\n  \n  💡 The "
      }
    },
    {
      "id": "6936190f-3147-4aa8-af8b-cb2fc60f77d3",
      "name": "Sticky Note13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1456,
        -320
      ],
      "parameters": {
        "width": 400,
        "height": 400,
        "content": "### **Extend \"Next Step !\" Placeholder:**\n  Current workflow stops at data merging. You can add:\n  \n  💬 Send Messages to All Channels:\n     • Add \"Split In Batches\" after Merge\n     • Add \"Discord: Se"
      }
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Next Step !",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Next Step !": {
      "main": [
        []
      ]
    },
    "Get Channels": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set - Server ID": {
      "main": [
        [
          {
            "node": "Get channels list",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get channels list": {
      "main": [
        [
          {
            "node": "Separate Category & Channel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Server's Categories": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Separate Category & Channel": {
      "main": [
        [
          {
            "node": "Get Channels",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Server's Categories",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Set - Server ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Set - Server ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}