SoundboardSound
- class SoundboardSound
A sound uploaded to a guild’s soundboard.
Properties
Property
Type
Description
availableWhether the sound can be played. Discord marks sounds unavailable when the guild loses the boost level that allowed them.
createdAtWhen this sound was uploaded, decoded from the sound snowflake.
emojiIdID of the custom emoji shown next to the sound.
emojiNameUnicode emoji shown next to the sound.
guildIdGuild ID this sound belongs to.
idSound ID.
nameSound name.
userUser who uploaded the sound. Only present when the bot has the Create Expressions or Manage Expressions permission.
volumePlayback volume from 0 to 1.
Methods
- async SoundboardSound.delete(reason: string) Promise<void>
Delete this sound.
- Parameters:
reason: Reason for deletion, shown in audit log.
-
async SoundboardSound.edit(options:
SoundboardSoundEditOptions) Promise<SoundboardSound> Edit sound properties.
- Parameters:
options: Sound properties to update.
- Returns:
The updated sound.