Discord API · error code

Discord error 160010: NSFW channel message reference not allowed

Policy / accountHTTP 400Validation and request shape

Last verified against Discord Developer Docs - Opcodes and status codes

What Discord returns
NSFW channel message reference not allowed

What error 160010 means

The message you are sending references a message from an age-restricted (NSFW) channel, and the destination does not allow that. Discord blocks references that would surface age-restricted content in places where it is not allowed.

Bots typically meet this when replying across channels, building a "starboard" that forwards popular messages, or forwarding a message from an age-restricted channel into a regular one. The reference itself is the problem, not the text you wrote.

If the destination channel is also age-restricted, the reference may be allowed. Otherwise, do not reference the message; post a link-free summary or skip it. Content filtered by Discord's media safety settings fails with 20009 instead.

Check both ends. The source channel's nsfw flag decides whether the reference is sensitive; the destination decides whether it is allowed.

What it looks like

{
  "message": "NSFW channel message reference not allowed",
  "code": 160010
}

Why it happens

  • Starboard or highlight bot forwarding messages from an age-restricted channel
  • Cross-channel reply referencing a message in an NSFW channel
  • Forwarding a message from an NSFW channel to a regular channel or DM
  • Destination channel is not age-restricted while the source is

How to fix Discord error 160010

  1. 1Check the source channel's nsfw field before referencing its messages
  2. 2Exclude age-restricted channels from starboard and forwarding features
  3. 3Post to an age-restricted destination if that is appropriate, or send without the reference
  4. 4Retry and confirm the message sends
  5. 5Log both channel IDs on failure so admins can see which pair is blocked

How to stop it recurring

Keep a per-guild list of age-restricted channels and exclude them from any feature that copies or references messages elsewhere. Default to off: admins should opt in deliberately for features that touch NSFW channels. Re-read nsfw flags when channels are updated.

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

Related codes

Error 160010 - quick answers

What does Discord error 160010 mean?

The message you are sending references a message from an age-restricted (NSFW) channel, and the destination does not allow that. Discord blocks references that would surface age-restricted content in places where it is not allowed. Bots typically meet this when replying across channels, building a "starboard" that forwards popular messages, or forwarding a message from an age-restricted channel into a regular one.

How do I fix Discord error 160010?

1. Check the source channel's nsfw field before referencing its messages 2. Exclude age-restricted channels from starboard and forwarding features 3. Post to an age-restricted destination if that is appropriate, or send without the reference 4. Retry and confirm the message sends 5. Log both channel IDs on failure so admins can see which pair is blocked

Stop debugging Discord by hand

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