#Krill, whats wrong with my channel config?

1 messages Β· Page 1 of 1 (latest)

honest cove
#

I want to add a openclaw bot to 2 guilds (IDs redacted), in the second guild to only 1 channel:

  "channels": {
    "discord": {
      "enabled": true,
      "token": {
        "source": "file",
        "provider": "filemain",
        "id": "/channels/discord/token"
      },
      "groupPolicy": "allowlist",
      "allowFrom": [
        "7***3"
      ],
      "guilds": {
        "15***81": {
          "requireMention": false,
          "users": [
            "7***3"
          ]
        },
        "14***97": {
          "requireMention": true,
          "users": [
            "7***3",
            "1***5"
          ],
          "channels": {
            "openclaw-test-channel": {"allow": true, "requireMention": true}
            }
          }
        },

But I'm getting error on config validation:
channels.discord.guilds.14***97.channels.openclaw-test-channel: invalid config: must NOT have additional properties

but it's just like the docs here: https://docs.openclaw.ai/channels/discord#access-control-and-routing

steel hearthBOT
#

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

latent drumBOT
meager forgeBOT
# honest cove I want to add a openclaw bot to 2 guilds (IDs redacted), in the second guild to ...

I checked current docs + source. The short version: the docs example is currently misleading here.

Current Discord channel entries do not accept allow, so this fails validation:

"openclaw-test-channel": { "allow": true, "requireMention": true }

For your case, the channel being present in the channels map is already the allowlist entry. Use:

"guilds": {
  "15***81": {
    "requireMention": false,
    "users": ["7***3"]
  },
meager forgeBOT
meager forgeBOT
# honest cove I want to add a openclaw bot to 2 guilds (IDs redacted), in the second guild to ...
"channels": {
  "1506134087348256809": {
    "requireMention": true
  }
}

With a channels block present, non-listed channels in that guild are denied. So you do not need allow: true.

Docs reference: https://docs.openclaw.ai/channels/discord#access-control-and-routing

If it still errors after removing allow, paste openclaw --version and the new validation error. This looks like either a docs/schema mismatch or a version mismatch, and the version will tell us which claw we're grabbing with. 🦞

honest cove
#

great, thanks @meager forge nice job!

meager forgeBOT