decord/source/modules/soundboard/useCustomJoinSound.tsx

65 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 10720
// Function ID: 83359
2026-07-20 16:05:17 +00:00
// Name: _getCustomJoinSound
2026-07-25 08:10:48 +00:00
// Dependencies: [1316, 4580, 566, 2]
2026-07-20 16:05:17 +00:00
// Exports: getCustomJoinSound, useCustomJoinSound
2026-07-27 11:26:19 +00:00
// Module 10720 (_getCustomJoinSound)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { CUSTOM_CALL_SOUND_GLOBAL_GUILD_ID as closure_3 } from "MAX_LENGTH_SOUND_NAME";
const require = arg1;
2026-07-20 16:05:17 +00:00
function _getCustomJoinSound(arg0, arg1) {
let joinSound;
if (null != arg1[arg0]) {
joinSound = tmp.joinSound;
}
let joinSound1;
if (null != arg1[closure_3]) {
joinSound1 = tmp3.joinSound;
}
if (null != joinSound) {
joinSound1 = joinSound;
}
if (null != joinSound1) {
const obj = {};
const merged = Object.assign(joinSound1);
if (null != joinSound) {
let GLOBAL = obj.GUILD;
} else {
GLOBAL = obj.GLOBAL;
}
obj["type"] = GLOBAL;
}
}
2026-07-23 10:11:24 +00:00
let obj = { GLOBAL: 0, [0]: "GLOBAL", GUILD: 1, [1]: "GUILD" };
const result = require("initialize").fileFinishedImporting("modules/soundboard/useCustomJoinSound.tsx");
2026-07-20 16:05:17 +00:00
export const CustomSoundType = obj;
export const useCustomJoinSound = function useCustomJoinSound(arg0) {
2026-07-23 10:11:24 +00:00
const _require = arg0;
const items = [_isNativeReflectConstruct];
return _require(566).useStateFromStores(items, () => {
let guilds = outer1_2.settings.guilds;
2026-07-20 16:05:17 +00:00
guilds = undefined;
if (null != guilds) {
guilds = guilds.guilds;
}
if (null == guilds) {
guilds = {};
}
2026-07-23 10:11:24 +00:00
return outer1_5(closure_0, guilds);
2026-07-20 16:05:17 +00:00
});
};
export const getCustomJoinSound = function getCustomJoinSound(arg0) {
let guilds = settings.settings.guilds;
guilds = undefined;
if (null != guilds) {
guilds = guilds.guilds;
}
if (null == guilds) {
guilds = {};
}
return _getCustomJoinSound(arg0, guilds);
};