mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
fix(GuildSoundboardSoundManager): value "undefined" is not snowflake (#10854)
This commit is contained in:
@@ -190,7 +190,7 @@ class GuildSoundboardSoundManager extends CachedManager {
|
|||||||
if (!options) return this._fetchMany();
|
if (!options) return this._fetchMany();
|
||||||
const { cache, force, soundboardSound } = options;
|
const { cache, force, soundboardSound } = options;
|
||||||
const resolvedSoundboardSound = this.resolveId(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 });
|
return this._fetchMany({ cache });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user