fix(GuildSoundboardSoundManager): value "undefined" is not snowflake (#10854)

This commit is contained in:
Danial Raza
2025-04-26 16:06:52 +02:00
committed by GitHub
parent 7fb6630c02
commit 62815928ab

View File

@@ -190,7 +190,7 @@ class GuildSoundboardSoundManager extends CachedManager {
if (!options) return this._fetchMany();
const { cache, force, soundboardSound } = options;
const resolvedSoundboardSound = this.resolveId(soundboardSound ?? options);
if (resolvedSoundboardSound) return this._fetchSingle({ cache, force, soundboardSound });
if (resolvedSoundboardSound) return this._fetchSingle({ cache, force, soundboardSound: resolvedSoundboardSound });
return this._fetchMany({ cache });
}