decord/source/modules/soundboard/useGuildIdsToFetchSoundsFor.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

32 lines
1.4 KiB
TypeScript

// Module ID: 7340
// Function ID: 7341
// Name: useGuildIdsToFetchSoundsFor
// Dependencies: [19, 1979, 5012, 563, 2]
// Exports: getGuildIdsToFetchSoundsFor, useGuildIdsToFetchSoundsFor
// Module 7340 (useGuildIdsToFetchSoundsFor)
import set from "set" /* 2 */;
import noop from "noop" /* 19 */;
import closure_3 from "createGuildRecordFromRust" /* 1979 */;
import closure_4 from "handleSoundCreateOrUpdate" /* 5012 */;
const useMemo = noop.useMemo;
const result = set.fileFinishedImporting("modules/soundboard/useGuildIdsToFetchSoundsFor.tsx");
export const useGuildIdsToFetchSoundsFor = function useGuildIdsToFetchSoundsFor() {
const items = [closure_3];
stateFromStoresArray = stateFromStoresArray(stateFromStores[3]).useStateFromStoresArray(items, () => guildIds.getGuildIds());
const obj = stateFromStoresArray(stateFromStores[3]);
const items1 = [closure_4];
stateFromStores = stateFromStoresArray(stateFromStores[3]).useStateFromStores(items1, () => sounds.getSounds());
const items2 = [stateFromStoresArray, stateFromStores];
return useMemo(() => {
stateFromStoresArray = stateFromStores;
return stateFromStoresArray.filter((arg0) => null == closure_0.get(arg0));
}, items2);
};
export const getGuildIdsToFetchSoundsFor = function getGuildIdsToFetchSoundsFor() {
guildIds = guildIds.getGuildIds();
const sounds2 = sounds.getSounds();
return guildIds.filter((arg0) => null == closure_0.get(arg0));
};