2026-09-28 16:18:32 +00:00
|
|
|
// Module ID: 10780
|
|
|
|
|
// Function ID: 10781
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: useBotProfileCommands
|
2026-09-28 16:18:32 +00:00
|
|
|
// Dependencies: [19, 8719, 1979, 2]
|
2026-09-26 17:57:22 +00:00
|
|
|
// Exports: default
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-09-28 16:18:32 +00:00
|
|
|
// Module 10780 (useBotProfileCommands)
|
|
|
|
|
import ApplicationCommandQueryApiAll from "ApplicationCommandQueryApi" /* 8719 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import react from "react" /* 19 */;
|
|
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
|
|
|
|
let type;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
|
|
|
|
const result = size.fileFinishedImporting("modules/user_profile/useBotProfileCommands.tsx");
|
|
|
|
|
|
2026-09-26 17:57:22 +00:00
|
|
|
export default function useBotProfileCommands(channel, arg1, arg2) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let items;
|
|
|
|
|
const obj = ApplicationCommandQueryApiAll;
|
|
|
|
|
const accessibleCommandsForApplication = obj.useAccessibleCommandsForApplication(channel, arg1, arg2);
|
2026-09-18 19:45:33 +00:00
|
|
|
const commands = accessibleCommandsForApplication.commands;
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj2 = {
|
|
|
|
|
application: accessibleCommandsForApplication.application,
|
|
|
|
|
commands: react.useMemo(() => {
|
|
|
|
|
let found;
|
|
|
|
|
const arr = commands;
|
|
|
|
|
if (commands != null) {
|
|
|
|
|
found = arr.filter((nsfw) => {
|
|
|
|
|
let tmp = true !== nsfw.nsfw;
|
|
|
|
|
if (tmp) {
|
|
|
|
|
const options = nsfw.options;
|
|
|
|
|
let found;
|
|
|
|
|
if (options != null) {
|
|
|
|
|
found = options.find((type) => {
|
|
|
|
|
type = type.type;
|
|
|
|
|
const tmp3 = type === closure_1_0(closure_1_2[2]).ApplicationCommandOptionType.SUB_COMMAND || type === closure_1_0(closure_1_2[2]).ApplicationCommandOptionType.SUB_COMMAND_GROUP;
|
|
|
|
|
return tmp3;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
tmp = null == found;
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
return tmp;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
return found;
|
|
|
|
|
}, items)
|
|
|
|
|
};
|
|
|
|
|
items = [commands];
|
2026-09-18 19:45:33 +00:00
|
|
|
return obj2;
|
2026-09-26 17:57:22 +00:00
|
|
|
};
|