decord/source/modules/soundboard/useGuildIdsToFetchSoundsFor.tsx

31 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 5735
// Function ID: 49295
2026-07-20 16:05:17 +00:00
// Name: _getGuildIdsToFetchSoundsFor
2026-07-23 10:11:24 +00:00
// Dependencies: [31, 1838, 4578, 624, 2]
2026-07-20 16:05:17 +00:00
// Exports: getGuildIdsToFetchSoundsFor, useGuildIdsToFetchSoundsFor
2026-07-23 10:11:24 +00:00
// Module 5735 (_getGuildIdsToFetchSoundsFor)
import { useMemo } from "result";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
2026-07-20 16:05:17 +00:00
function _getGuildIdsToFetchSoundsFor(guildIds, sounds) {
2026-07-23 10:11:24 +00:00
let closure_0 = sounds;
return guildIds.filter((arg0) => null == sounds.get(arg0));
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const result = require("_isNativeReflectConstruct").fileFinishedImporting("modules/soundboard/useGuildIdsToFetchSoundsFor.tsx");
2026-07-20 16:05:17 +00:00
export const useGuildIdsToFetchSoundsFor = function useGuildIdsToFetchSoundsFor() {
2026-07-23 10:11:24 +00:00
const items = [_createForOfIteratorHelperLoose];
stateFromStoresArray = stateFromStoresArray(stateFromStores[3]).useStateFromStoresArray(items, () => outer1_3.getGuildIds());
const obj = stateFromStoresArray(stateFromStores[3]);
const items1 = [_isNativeReflectConstruct];
stateFromStores = stateFromStoresArray(stateFromStores[3]).useStateFromStores(items1, () => outer1_4.getSounds());
2026-07-20 16:05:17 +00:00
const items2 = [stateFromStoresArray, stateFromStores];
2026-07-23 10:11:24 +00:00
return useMemo(() => outer1_5(stateFromStoresArray, stateFromStores), 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-20 16:05:17 +00:00
return _getGuildIdsToFetchSoundsFor(guildIds, sounds.getSounds());
};