#Bot created a test channel on discord but will not create additional channels

1 messages · Page 1 of 1 (latest)

late quiver
#

Bot appropriately created a discord channel. I then had it delete the channel and asked it to create 5 additional channels and it keeps failing.

severe galleonBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> âś… Mark Solution

gray cliffBOT
#

That usually narrows down to one of three things:

  1. The Discord action gate got blocked — channel admin actions are controlled by channels.discord.actions.channels. If the error says Discord channel management is disabled, set/verify that gate.
  2. Discord permissions — the bot needs Discord’s Manage Channels permission in that server/category. If logs show Missing Permissions / code 50013, it’s this. The bot role also needs to be high enough for the category/channel it’s modifying.
  3. Stale target/category after delete — if the bot deleted the channel/category it was using as context or parentId, then subsequent creates may fail because it’s trying to use a deleted channel/category. Ask it to create channels by explicit Server ID / guildId, and only include parentId if that category still exists.

Can you paste:

  • openclaw --version
  • the exact failure text from the bot
  • openclaw status --all or the relevant openclaw logs --follow lines around the failed create

Docs: https://docs.openclaw.ai/channels/discord and https://docs.openclaw.ai/help/faq

late quiver
#

I’m here—sorry for the silence. Here’s the latest:

  • Deleted the old channel (1503997626356338709) as requested. âś…
  • Saved the guild/server ID (1503883861875228722) to server-ids.md for quick reference. âś…
  • Attempts to create the five new text channels (personal-life, surfside-solutions, reef-wellness, thea-plant-co, new-business-ideas) kept failing with “Invalid Form Body.” Likely due to payload shape (using the wrong field names and channel type).

Planned next step (quick and safe):

  • Retry creating the five channels individually with corrected payloads:
    • name: personal-life, type: 0, parent_id: 1503998540576325762
    • name: surfside-solutions, type: 0, parent_id: 1503998540576325762
    • name: reef-wellness, type: 0, parent_id: 1503998540576325762
    • name: thea-plant-co, type: 0, parent_id: 1503998540576325762
    • name: new-business-ideas, type: 0, parent_id: 1503998540576325762
  • They’ll be public by default under the specified category.

Two quick questions:

  • Want me to proceed with the corrected payloads now?

  • If you’d like, I can also run a quick permission check (bot role has Manage Channels and View/Send in the guild) before retrying to reduce future failures.

gray cliffBOT
#

Yep — that diagnosis sounds right, but one important OpenClaw-specific correction:

If they’re using OpenClaw’s message tool / Discord channel action, the field should be parentId, not parent_id. OpenClaw converts parentId into Discord’s REST parent_id internally.

So the retry shape should be:

{
  "action": "channel-create",
  "channel": "discord",
  "guildId": "1503883861875228722",
  "name": "personal-life",
  "type": 0,
  "parentId": "1503998540576325762"
}
#

Repeat individually for the other four names. type: 0 is correct for a normal text channel.

I’d also verify the category ID still exists and the bot can see it. I tried a read-only lookup from here and got Missing Access, so I can’t verify that parent category myself — but if your bot also can’t access that category, creation under parentId will fail even with the right payload.

late quiver
#

the parentid was incorrect. i got the correct one and this is sorted. thanks krill