Discord API · error code

Discord error 50173: Cannot send voice messages in this channel

ConfigurationPermissions and access

Last verified against Discord Developer Docs - Opcodes and status codes

What Discord returns
You cannot send voice messages in this channel.

What error 50173 means

The voice message itself may be well formed, but the channel does not allow the sender to post voice messages. Voice messages have their own permission, Send Voice Messages (1 << 46), separate from Send Messages and Attach Files.

A bot can have every ordinary message permission in a channel and still get 50173 because a role or channel overwrite denies Send Voice Messages. Servers often disable it in text channels where they want only written discussion.

This differs from the general 50013: the specific voice-message permission is what is missing. Content problems with the message itself are covered on 50159 and 50160.

The bit sits above 32 bits, so in JavaScript use BigInt (or your library's permission helpers) when you check it; ordinary bitwise operators on numbers work on 32 bits and silently drop it.

What it looks like

{
  "message": "You cannot send voice messages in this channel.",
  "code": 50173
}

Why it happens

  • Send Voice Messages denied for the bot's role in this channel
  • @everyone overwrite denies voice messages and nothing re-allows it for the bot
  • Channel type where voice messages are not allowed
  • Server-wide role setup that never granted the permission

How to fix Discord error 50173

  1. 1Check the bot's effective permissions in the channel for Send Voice Messages
  2. 2Ask an admin to allow Send Voice Messages for the bot's role in that channel
  3. 3Fall back to sending the audio as a normal attachment without the voice flag
  4. 4Retry and confirm the voice message posts
  5. 5Store permission integers as strings and compare them with BigInt
  6. 6When the permission is allowed, send voice messages the documented way: the message flags include IS_VOICE_MESSAGE (1 << 13), and the audio attachment carries duration_secs and a base64 waveform.

How to stop it recurring

Check Send Voice Messages before offering a voice reply, and fall back to a plain audio attachment where it is denied. Include the bit in your invite permissions if voice replies are a core feature; the Discord permissions calculator shows the integer.

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

Related codes

Error 50173 - quick answers

What does Discord error 50173 mean?

The voice message itself may be well formed, but the channel does not allow the sender to post voice messages. Voice messages have their own permission, Send Voice Messages ( 1 << 46 ), separate from Send Messages and Attach Files. A bot can have every ordinary message permission in a channel and still get 50173 because a role or channel overwrite denies Send Voice Messages.

How do I fix Discord error 50173?

1. Check the bot's effective permissions in the channel for Send Voice Messages 2. Ask an admin to allow Send Voice Messages for the bot's role in that channel 3. Fall back to sending the audio as a normal attachment without the voice flag 4. Retry and confirm the voice message posts 5. Store permission integers as strings and compare them with BigInt 6. When the permission is allowed, send voice messages the documented way: the message flags include IS_VOICE_MESSAGE (1 <<…

Stop debugging Discord by hand

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