Preview environment

class GuildSoundboardSoundManager

export class GuildSoundboardSoundManager extends CachedManager<Snowflake, SoundboardSound, SoundboardSoundResolvable>

Manages API methods for Soundboard Sounds and stores their cache.

readonly
cache : Collection<Key, Holds>

The cache of items for this manager.

Inherited from: DataManager

readonly
client : Client

The client that instantiated this Manager

Inherited from: BaseManager

guild : Guild

The guild this manager belongs to

readonly
holds : Constructable<Holds>

The data structure belonging to this manager.

Inherited from: DataManager

Creates a new guild soundboard sound.

Examples:
// Create a new soundboard sound from a file on your computer
guild.soundboardSounds.create({ file: './sound.mp3', name: 'sound' })
  .then(sound => console.log(`Created new soundboard sound with name ${sound.name}!`))
  .catch(console.error);

Returns: The created soundboard sound

delete(
soundboardSound: SoundboardSoundResolvable
) : Promise<void>

Deletes a soundboard sound.

Edits a soundboard sound.

resolve(
soundboardSound: SoundboardSoundResolvable
) : SoundboardSound | null

Resolves a SoundboardSoundResolvable to a SoundboardSound object.

resolveId(
soundboardSound: SoundboardSoundResolvable
) : Snowflake | null

Resolves a SoundboardSoundResolvable to a SoundboardSound id.

valueOf() : Collection<Key, Holds>

Inherited from: DataManager