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

66 lines
2.8 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 5684
// Function ID: 48923
2026-07-20 16:05:17 +00:00
// Name: get untranslatedDescription
2026-07-25 08:10:48 +00:00
// Dependencies: [3768, 1850, 4567, 1882, 5676, 1212, 4321, 4471, 4141, 5685, 2]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 5684 (get untranslatedDescription)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_4 from "_isNativeReflectConstruct";
const require = arg1;
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-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
return intl.string(require(1212) /* getSystemLocale */.t["26C4oi"]);
2026-07-20 16:05:17 +00:00
},
set: undefined
});
Object.defineProperty(obj, "displayDescription", {
get: () => {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
return intl.string(require(1212) /* 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) {
2026-07-25 08:10:48 +00:00
const channelName = channel(4321).computeChannelName(channel, closure_4, _isNativeReflectConstruct);
2026-07-23 10:11:24 +00:00
const intl5 = channel(1212).intl;
2026-07-20 16:05:17 +00:00
let obj = { name: channelName };
2026-07-25 08:10:48 +00:00
const obj5 = channel(4321);
2026-07-23 10:11:24 +00:00
const intl6 = channel(1212).intl;
2026-07-20 16:05:17 +00:00
obj = { name: channelName };
2026-07-23 10:11:24 +00:00
let formatResult = intl6.format(channel(1212).t.SSIVOu, obj);
let formatToPlainStringResult1 = intl5.formatToPlainString(channel(1212).t.hJ5Ap4, obj);
2026-07-20 16:05:17 +00:00
if (channel.isManaged()) {
2026-07-23 10:11:24 +00:00
const intl = channel(1212).intl;
2026-07-20 16:05:17 +00:00
obj = { name: channelName };
2026-07-23 10:11:24 +00:00
formatToPlainStringResult1 = intl.formatToPlainString(channel(1212).t.hVGjEW, obj);
const intl2 = channel(1212).intl;
2026-07-20 16:05:17 +00:00
const obj1 = { name: channelName };
2026-07-23 10:11:24 +00:00
formatResult = intl2.format(channel(1212).t.IK1Qvs, obj1);
2026-07-20 16:05:17 +00:00
}
2026-07-25 08:10:48 +00:00
let obj2 = importDefault(4471);
2026-07-20 16:05:17 +00:00
obj2 = { title: formatToPlainStringResult1, body: formatResult };
2026-07-23 10:11:24 +00:00
const intl3 = channel(1212).intl;
obj2.confirmText = intl3.string(channel(1212).t["26C4oi"]);
const intl4 = channel(1212).intl;
obj2.cancelText = intl4.string(channel(1212).t["ETE/oC"]);
2026-07-20 16:05:17 +00:00
obj2.onConfirm = function onConfirm() {
2026-07-23 10:11:24 +00:00
outer1_1(outer1_2[8]).closePrivateChannel(channel.id);
2026-07-20 16:05:17 +00:00
};
obj2.show(obj2);
2026-07-23 10:11:24 +00:00
const formatToPlainStringResult = intl5.formatToPlainString(channel(1212).t.hJ5Ap4, obj);
2026-07-20 16:05:17 +00:00
}
};
const items = [obj];
2026-07-23 10:11:24 +00:00
const result = require("TRUE_OPTION_NAME").fileFinishedImporting("modules/application_commands/native/ApplicationCommandBuiltIns.tsx");
2026-07-20 16:05:17 +00:00
export default items;