class SoundboardSound
extends
Baseexport class SoundboardSound extends Base
Represents a soundboard sound.
boolean available :
Whether this soundboard sound is available
readonlyDate createdAt :
The time this soundboard sound was created at
readonlynumber createdTimestamp :
The timestamp this soundboard sound was created at
string name :
The name of this soundboard sound
readonlystring url :
A link to this soundboard sound
number volume :
The volume (a double) of this soundboard sound, from 0 to 1
deletereason?: 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);
editoptions?: 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);
equalsother: SoundboardSound | APISoundboardSound) : boolean (
other: SoundboardSound | APISoundboardSound
Whether this soundboard sound is the same as another one.