Discord API · error code

Discord error 40066: No tags available to non-moderators

ConfigurationHTTP 400Validation and request shape

Last verified against Discord Developer Docs - Opcodes and status codes

What Discord returns
There are no tags available that can be set by non-moderators

What error 40066 means

The forum requires a tag on every new post, but every tag in the forum is marked as moderator-only, and the account creating the post is not a moderator there. With no tag it is allowed to apply, it cannot satisfy the requirement, so the post is refused.

Each forum tag has a moderated field. When it is true, only members with Manage Threads can add or remove that tag. If the forum also has the REQUIRE_TAG flag set, a poster without Manage Threads needs at least one tag where moderated is false.

For a bot this is a server configuration problem, not a code problem. Either the bot needs Manage Threads in that forum, or the forum needs at least one tag regular posters can use. When some unmoderated tags exist and you simply sent none, you get 40067 instead.

What it looks like

{
  "message": "There are no tags available that can be set by non-moderators",
  "code": 40066
}

Why it happens

  • All available_tags on the forum have moderated: true
  • Forum has REQUIRE_TAG set and the bot lacks Manage Threads
  • Admin changed tags to moderator-only after the bot was set up

How to fix Discord error 40066

  1. 1Fetch the forum channel and inspect available_tags and their moderated flags
  2. 2Grant the bot Manage Threads in that forum, or
  3. 3Ask an admin to add at least one tag with moderated set to false
  4. 4Retry the post with applied_tags containing a tag the bot is allowed to use

How to stop it recurring

When a server configures your bot to post into a forum, check the tags right then and warn if none are usable. Store a default tag ID per forum and re-validate it on startup. Tag uniqueness rules are covered on 40061.

Official reference: Discord Developer Docs - Opcodes and status codes. See all Discord error codes or the Discord limits and quotas.

Related codes

Error 40066 - quick answers

What does Discord error 40066 mean?

The forum requires a tag on every new post, but every tag in the forum is marked as moderator-only, and the account creating the post is not a moderator there. With no tag it is allowed to apply, it cannot satisfy the requirement, so the post is refused. Each forum tag has a moderated field. When it is true , only members with Manage Threads can add or remove that tag.

How do I fix Discord error 40066?

1. Fetch the forum channel and inspect available_tags and their moderated flags 2. Grant the bot Manage Threads in that forum, or 3. Ask an admin to add at least one tag with moderated set to false 4. Retry the post with applied_tags containing a tag the bot is allowed to use

Stop debugging Discord by hand

Connect the channel through Conferbot: tokens, webhooks and retries are handled, failures show as readable status.