decord/source/modules/soundboard/useGuildIdsToFetchSoundsFor.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

32 lines
1.4 KiB
TypeScript

// Module ID: 7278
// Function ID: 7279
// Name: useGuildIdsToFetchSoundsFor
// Dependencies: [19, 1908, 4973, 644, 2]
// Exports: getGuildIdsToFetchSoundsFor, useGuildIdsToFetchSoundsFor
// Module 7278 (useGuildIdsToFetchSoundsFor)
import set from "set" /* 2 */;
import noop from "noop" /* 19 */;
import closure_3 from "createGuildRecordFromRust" /* 1908 */;
import closure_4 from "handleSoundCreateOrUpdate" /* 4973 */;
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));
};