Soundboard
createSoundboardSound
$createSoundboardSound — Creates a new soundboard sound, returns sound id
Creates a new soundboard sound, returns sound id
Syntax
$createSoundboardSound[guildID;name;file;(emoji);(volume);(reason)]
Parameters
- guildID (id, required) — The guild to create soundboard sound on
- name (text, required) — The name for the sound
- file (text, required) — The file for the sound
- emoji (text, optional) — The emoji for the sound
- volume (number, optional) — The volume for the sound (from 0 to 1)
- reason (text, optional) — The reason for creating the sound
Return Value
- SoundboardSound.
Usage
$createSoundboardSound[guildID;name;file;(emoji);(volume);(reason)] → result
Example
$createSoundboardSound[10;Boom;$message[value];🔊;0.8]
The value passed ($message[value]) must be a data URI such as data:audio/mpeg;base64,...: the function does not download web addresses.
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.