decord/source/modules/application_commands/native/ApplicationCommandBuiltIns.tsx

79 lines
3.2 KiB
TypeScript
Raw Normal View History

// Module ID: 9231
// Function ID: 9232
2026-07-20 16:05:17 +00:00
// Name: get untranslatedDescription
// Dependencies: [4130, 1921, 4960, 1954, 7456, 1233, 4681, 4865, 4494, 7390, 2]
2026-07-20 16:05:17 +00:00
// Module 9231 (get untranslatedDescription)
import setDefault from "set" /* 4865 */;
2026-09-01 10:26:29 +00:00
import closure_3 from "markAllUserIdListsStale" /* 4130 */;
2026-09-02 09:53:35 +00:00
import closure_4 from "mergeGuildAvatar" /* 1921 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
let obj = { id: "-15", untranslatedName: "leave", displayName: "leave", type: require("PermissionOverwriteType").ApplicationCommandType.CHAT, inputType: require("ApplicationCommandSectionType").ApplicationCommandInputType.BUILT_IN, applicationId: require("TRUE_OPTION_NAME").BuiltInSectionId.BUILT_IN };
2026-07-20 16:05:17 +00:00
Object.defineProperty(obj, "untranslatedDescription", {
get: () => {
2026-09-02 09:53:35 +00:00
const intl = require(1233) /* getSystemLocale */.intl;
return intl.string(require(1233) /* getSystemLocale */.t["26C4oi"]);
2026-07-20 16:05:17 +00:00
},
set: undefined
});
Object.defineProperty(obj, "displayDescription", {
get: () => {
2026-09-02 09:53:35 +00:00
const intl = require(1233) /* getSystemLocale */.intl;
return intl.string(require(1233) /* getSystemLocale */.t["26C4oi"]);
2026-07-20 16:05:17 +00:00
},
set: undefined
});
obj.predicate = function predicate(channel) {
channel = channel.channel;
return null != channel && channel.isGroupDM();
};
obj.execute = function execute(arg0, channel) {
channel = channel.channel;
if (null != channel) {
const channelName = channel(4681).computeChannelName(channel, closure_4, closure_3);
2026-09-02 09:53:35 +00:00
const intl5 = channel(1233).intl;
2026-07-29 08:29:29 +00:00
let obj = { name: null };
obj[0] = channelName;
const obj5 = channel(4681);
2026-09-02 09:53:35 +00:00
const intl6 = channel(1233).intl;
2026-07-29 08:29:29 +00:00
obj = { name: null };
obj[0] = channelName;
2026-09-02 09:53:35 +00:00
let formatResult = intl6.format(channel(1233).t.SSIVOu, obj);
let formatToPlainStringResult1 = intl5.formatToPlainString(channel(1233).t.hJ5Ap4, obj);
2026-07-20 16:05:17 +00:00
if (channel.isManaged()) {
2026-09-02 09:53:35 +00:00
let intl = tmp5(1233).intl;
2026-07-29 08:29:29 +00:00
obj = { name: null };
obj[0] = channelName;
2026-09-02 09:53:35 +00:00
formatToPlainStringResult1 = intl.formatToPlainString(tmp5(1233).t.hVGjEW, obj);
const intl2 = tmp5(1233).intl;
2026-08-24 06:08:38 +00:00
obj1 = { name: null };
2026-07-29 08:29:29 +00:00
obj1[0] = channelName;
2026-09-02 09:53:35 +00:00
formatResult = intl2.format(tmp5(1233).t.IK1Qvs, obj1);
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
let obj2 = setDefault;
2026-07-29 08:29:29 +00:00
obj2 = { title: null, body: null, confirmText: null, cancelText: null, onConfirm: null };
obj2[0] = formatToPlainStringResult1;
obj2[1] = formatResult;
2026-09-02 09:53:35 +00:00
const intl3 = tmp5(1233).intl;
obj2[2] = intl3.string(channel(1233).t["26C4oi"]);
const intl4 = tmp5(1233).intl;
obj2[3] = intl4.string(channel(1233).t["ETE/oC"]);
2026-07-29 08:29:29 +00:00
obj2[4] = function onConfirm() {
try {
2026-08-24 06:08:38 +00:00
closure_1_1(closure_1_2[8]).closePrivateChannel(channel.id);
2026-07-29 08:29:29 +00:00
} catch (err) {
2026-08-24 06:08:38 +00:00
const intl = channel(closure_1_2[5]).intl;
closure_1_1(closure_1_2[9]).sendBotMessage(channel.id, intl.string(channel(closure_1_2[5]).t["YOsuT/"]));
const obj2 = closure_1_1(closure_1_2[9]);
2026-07-29 08:29:29 +00:00
}
2026-07-20 16:05:17 +00:00
};
obj2.show(obj2);
2026-09-02 09:53:35 +00:00
const formatToPlainStringResult = intl5.formatToPlainString(channel(1233).t.hJ5Ap4, obj);
2026-07-20 16:05:17 +00:00
}
};
const items = [obj];
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/application_commands/native/ApplicationCommandBuiltIns.tsx");
2026-07-20 16:05:17 +00:00
export default items;