class SoundboardSound
extends
Baseexport class SoundboardSound extends BaseRepresents a soundboard sound.
available : boolean
Whether this soundboard sound is available
readonlycreatedAt : Date
The time this soundboard sound was created at
readonlycreatedTimestamp : number
The timestamp this soundboard sound was created at
name : string
The name of this soundboard sound
readonlyurl : string
A link to this soundboard sound
volume : number
The volume (a double) of this soundboard sound, from 0 to 1
delete(reason?: string) : Promise<GuildSoundboardSound>
reason?: string
Deletes this soundboard sound.
Examples:
// Delete a soundboard sound
soundboardSound.delete()
.then(sound => console.log(`Deleted soundboard sound ${sound.name}`))
.catch(console.error); edit(options?: GuildSoundboardSoundEditOptions) : Promise<GuildSoundboardSound>
options?: GuildSoundboardSoundEditOptions
Edits this soundboard sound.
Examples:
// Update the name of a soundboard sound
soundboardSound.edit({ name: 'new name' })
.then(sound => console.log(`Updated the name of the soundboard sound to ${sound.name}`))
.catch(console.error); equals(other: SoundboardSound | APISoundboardSound) : boolean
other: SoundboardSound | APISoundboardSound
Whether this soundboard sound is the same as another one.