decord/source/modules/soundboard/useGuildIdsToFetchSoundsFor.tsx

33 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 7338
// Function ID: 7339
2026-07-29 08:29:29 +00:00
// Name: useGuildIdsToFetchSoundsFor
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 1910, 4785, 647, 2]
2026-07-20 16:05:17 +00:00
// Exports: getGuildIdsToFetchSoundsFor, useGuildIdsToFetchSoundsFor
2026-08-24 06:08:38 +00:00
// Module 7338 (useGuildIdsToFetchSoundsFor)
import set from "set" /* 2 */;
import noop from "noop" /* 19 */;
import closure_3 from "createGuildRecordFromRust" /* 1910 */;
import closure_4 from "handleSoundCreateOrUpdate" /* 4785 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const useMemo = noop.useMemo;
const result = set.fileFinishedImporting("modules/soundboard/useGuildIdsToFetchSoundsFor.tsx");
2026-07-20 16:05:17 +00:00
export const useGuildIdsToFetchSoundsFor = function useGuildIdsToFetchSoundsFor() {
2026-08-24 06:08:38 +00:00
const items = [closure_3];
2026-07-29 08:29:29 +00:00
stateFromStoresArray = stateFromStoresArray(stateFromStores[3]).useStateFromStoresArray(items, () => guildIds.getGuildIds());
2026-07-23 10:11:24 +00:00
const obj = stateFromStoresArray(stateFromStores[3]);
2026-08-24 06:08:38 +00:00
const items1 = [closure_4];
2026-07-29 08:29:29 +00:00
stateFromStores = stateFromStoresArray(stateFromStores[3]).useStateFromStores(items1, () => sounds.getSounds());
2026-07-20 16:05:17 +00:00
const items2 = [stateFromStoresArray, stateFromStores];
2026-07-29 08:29:29 +00:00
return useMemo(() => {
2026-08-24 06:08:38 +00:00
stateFromStoresArray = stateFromStores;
2026-07-29 08:29:29 +00:00
return stateFromStoresArray.filter((arg0) => null == closure_0.get(arg0));
}, items2);
2026-07-20 16:05:17 +00:00
};
export const getGuildIdsToFetchSoundsFor = function getGuildIdsToFetchSoundsFor() {
2026-07-23 10:11:24 +00:00
guildIds = guildIds.getGuildIds();
2026-07-29 08:29:29 +00:00
const sounds2 = sounds.getSounds();
return guildIds.filter((arg0) => null == closure_0.get(arg0));
2026-07-20 16:05:17 +00:00
};