RESTPostAPIGuildSoundboardSoundJSONBody
https://discord.com/developers/docs/resources/soundboard#create-guild-soundboard-sound Soundboard sounds have a max file size of 512kb and a max duration of 5.2 seconds. This endpoint supports the X-Audit-Log-Reason header.
Signature
export interface RESTPostAPIGuildSoundboardSoundJSONBodyJSDoc
@requiresPermission CreateGuildExpressions
Properties
5Methods
0No methods.
Properties
name: string;name of the soundboard sound (2-32 characters)
sound: string;the mp3 or ogg sound data, base64 encoded, similar to image data
volume?: number | null;the volume of the soundboard sound, from 0 to 1, defaults to 1
emoji_id?: Snowflake | null;the id of the custom emoji for the soundboard sound
emoji_name?: string | null;the unicode character of a standard emoji for the soundboard sound