mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
fix(Guild): cache soundboard sounds when patching (#10857)
This commit is contained in:
@@ -499,6 +499,13 @@ class Guild extends AnonymousGuild {
|
|||||||
} else {
|
} else {
|
||||||
this.incidentsData ??= null;
|
this.incidentsData ??= null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (data.soundboard_sounds) {
|
||||||
|
this.soundboardSounds.cache.clear();
|
||||||
|
for (const soundboardSound of data.soundboard_sounds) {
|
||||||
|
this.soundboardSounds._add(soundboardSound);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user