Overview
The Soundboard resource provides endpoints for managing soundboard sounds, including listing, creating, modifying, and playing sounds in voice channels.Endpoints
List Default Soundboard Sounds
GET/soundboard-default-sounds
Returns an array of soundboard sound objects that can be used by all users.
Notes
- These are global sounds available to all Discord users
- No authentication required for this endpoint
List Guild Soundboard Sounds
GET/guilds/:guild/soundboard-sounds
Returns a list of the guild’s soundboard sounds. Includes user fields if the bot has the CREATE_GUILD_EXPRESSIONS or MANAGE_GUILD_EXPRESSIONS permission.
Parameters
guild- Guild ID (snowflake)
Get Guild Soundboard Sound
GET/guilds/:guild/soundboard-sounds/:sound
Returns a soundboard sound object for the given sound ID. Includes the user field if the bot has the CREATE_GUILD_EXPRESSIONS or MANAGE_GUILD_EXPRESSIONS permission.
Parameters
guild- Guild ID (snowflake)sound- Sound ID (snowflake)
Create Guild Soundboard Sound
POST/guilds/:guild/soundboard-sounds
Create a new soundboard sound for the guild. Requires the CREATE_GUILD_EXPRESSIONS permission. Returns the new soundboard sound object on success. Fires a Guild Soundboard Sound Create Gateway event.
Parameters
guild- Guild ID (snowflake)body.name- Name of the soundboard sound (required, 2-32 characters)body.sound- The mp3 or ogg sound data, base64 encoded, similar to image data (required, data URI)body.volumn- The volume of the soundboard sound, from 0 to 1 (optional, defaults to 1)body.emojiId- The ID of the custom emoji for the soundboard sound (optional, nullable, snowflake)body.emojiName- The unicode character of a standard emoji for the soundboard sound (optional, nullable)
Notes
- Soundboard sounds have a max file size of 512kb and a max duration of 5.2 seconds
- This endpoint supports the
X-Audit-Log-Reasonheader
Modify Guild Soundboard Sound
PATCH/guilds/:guild/soundboard-sounds/:sound
Modify the given soundboard sound. For sounds created by the current user, requires either the CREATE_GUILD_EXPRESSIONS or MANAGE_GUILD_EXPRESSIONS permission. For other sounds, requires the MANAGE_GUILD_EXPRESSIONS permission. Returns the updated soundboard sound object on success. Fires a Guild Soundboard Sound Update Gateway event.
Parameters
guild- Guild ID (snowflake)sound- Sound ID (snowflake)body.name- Name of the soundboard sound (optional, 2-32 characters)body.volumn- The volume of the soundboard sound, from 0 to 1 (optional, nullable)body.emojiId- The ID of the custom emoji for the soundboard sound (optional, nullable, snowflake)body.emojiName- The unicode character of a standard emoji for the soundboard sound (optional, nullable)
Notes
- All parameters to this endpoint are optional
- This endpoint supports the
X-Audit-Log-Reasonheader
Delete Guild Soundboard Sound
DELETE/guilds/:guild/soundboard-sounds/:sound
Delete the given soundboard sound. For sounds created by the current user, requires either the CREATE_GUILD_EXPRESSIONS or MANAGE_GUILD_EXPRESSIONS permission. For other sounds, requires the MANAGE_GUILD_EXPRESSIONS permission. Returns 204 No Content on success. Fires a Guild Soundboard Sound Delete Gateway event.
Parameters
guild- Guild ID (snowflake)sound- Sound ID (snowflake)
Send Soundboard Sound
POST/channels/:channel/send-soundboard-sound
Send a soundboard sound to a voice channel the user is connected to. Fires a Voice Channel Effect Send Gateway event.
Parameters
channel- Voice channel ID (snowflake)body.soundId- The ID of the soundboard sound to play (required, snowflake)body.sourceGuildId- The ID of the guild the soundboard sound is from (optional, required to play sounds from different servers)
Notes
- Requires the
SPEAKandUSE_SOUNDBOARDpermissions - Also requires the
USE_EXTERNAL_SOUNDSpermission if the sound is from a different server - User must be connected to the voice channel
- User’s voice state cannot have
deaf,self_deaf,mute, orsuppressenabled
Exports
Schema Exports
listGuildSoundboardSoundsSchemagetGuildSoundboardSoundSchemacreateGuildSoundboardSoundSchemamodifyGuildSoundboardSoundSchemadeleteGuildSoundboardSoundSchemasendSoundboardSoundSchema
Handler Exports
listDefaultSoundboardSoundslistDefaultSoundboardSoundsSafelistGuildSoundboardSoundslistGuildSoundboardSoundsSafegetGuildSoundboardSoundgetGuildSoundboardSoundSafecreateGuildSoundboardSoundcreateGuildSoundboardSoundSafemodifyGuildSoundboardSoundmodifyGuildSoundboardSoundSafedeleteGuildSoundboardSounddeleteGuildSoundboardSoundSafesendSoundboardSoundsendSoundboardSoundSafe
Query Exports
listDefaultSoundboardSoundsQuerylistGuildSoundboardSoundsQuerygetGuildSoundboardSoundQuery
Procedure Exports
All procedures are exported viasoundboardProcedures:
listDefaultSoundboardSoundsProcedurelistGuildSoundboardSoundsProceduregetGuildSoundboardSoundProcedurecreateGuildSoundboardSoundProceduremodifyGuildSoundboardSoundProceduredeleteGuildSoundboardSoundProceduresendSoundboardSoundProcedure
Usage Example
Sound Format Requirements
- Supported formats: MP3 or OGG
- Maximum file size: 512kb
- Maximum duration: 5.2 seconds
- Audio must be base64 encoded as a data URI
Permissions
CREATE_GUILD_EXPRESSIONS- Required to create soundsMANAGE_GUILD_EXPRESSIONS- Required to modify/delete sounds created by othersUSE_SOUNDBOARD- Required to play soundsUSE_EXTERNAL_SOUNDS- Required to play sounds from other serversSPEAK- Required to send sounds in voice channels