discord-api-docs icon indicating copy to clipboard operation
discord-api-docs copied to clipboard

Cannot play specific soundboard sounds

Open Droid00000 opened this issue 4 months ago • 2 comments

Description

When attempting to play certain external soundboard sounds, the API responds with an error. There is one specific external soundboard sound that my bot can play, but using any other external soundboard sound results in a 403.

To clarify, this does not affect the default soundboard sounds

Steps to Reproduce

  1. Make sure the bot has the :USE_EXTERNAL_SOUNDS or the :ADMINISTRATOR permission in the voice channel's associated guild

  2. Connect to a voice channel

  3. Pick a soundboard sound from another guild your bot is in where sound.available == true

  4. I tried to send the payload below using the send soundboard sound route to voice channel 1414031708432371804 and the API returned a 403 error:

{ "sound_id": 1358519308409634988, "source_guild_id": 1252204883533103145 }

Here's a bit of a pseudo-code example showing what I did:

sounds = data.bot.servers.values.flat_map do |server|
  server.soundboard_sounds.select { |sound| sound.available? == true }
end

sounds.shuffle[0].play(TEST_VOICE_CHANNEL_ID)

Expected Behavior

Since the soundboard sound I'm trying to play is available and the bot is in the server it's from, I expect to be able to use the sound.

Current Behavior

The API returns a 403 error when using any external soundboard sound, except for this specific external sound: 1358519542791536812

Screenshots/Videos

No response

Client and System Information

Browser: N/A Client: N/A OS: N/A

Droid00000 avatar Sep 07 '25 02:09 Droid00000

Hello, thanks for the report, can you provide some more detailed info about the error you're getting? Please include any error codes/messages that are in the body of the response from the API

Rodentman87 avatar Sep 15 '25 22:09 Rodentman87

Hello, thanks for the report, can you provide some more detailed info about the error you're getting? Please include any error codes/messages that are in the body of the response from the API

Hey, thanks for following up! This was the exact error in the JSON body:

"{\"message\": \"This action requires a premium subscription\", \"code\": 20015}"

Droid00000 avatar Sep 15 '25 23:09 Droid00000