decord/source/modules/application_commands/native/ApplicationCommandBuiltIns.tsx
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

73 lines
3.1 KiB
TypeScript

// Module ID: 9334
// Function ID: 9335
// Name: application_commands/ApplicationCommandBuiltIns
// Dependencies: [4222, 1371, 5013, 1894, 7537, 1114, 4727, 4918, 4587, 7470, 2]
// Module 9334 (application_commands/ApplicationCommandBuiltIns)
import ChannelActionCreatorsDefault from "ChannelActionCreators" /* 4587 */;
import AlertActionCreatorsDefault from "AlertActionCreators" /* 4918 */;
import MessageActionCreatorsDefault from "MessageActionCreators" /* 7470 */;
import RelationshipStore from "RelationshipStore" /* 4222 */;
import UserStore from "UserStore" /* 1371 */;
const require = fn;
let obj = { id: "-15", untranslatedName: "leave", displayName: "leave", type: fn(1894).ApplicationCommandType.CHAT, inputType: fn(7537).ApplicationCommandInputType.BUILT_IN, applicationId: fn(5013).BuiltInSectionId.BUILT_IN };
Object.defineProperty(obj, "untranslatedDescription", {
get: () => {
const intl = require("util").intl;
return intl.string(require("util").t["26C4oi"]);
},
set: undefined
});
Object.defineProperty(obj, "displayDescription", {
get: () => {
const intl = require("util").intl;
return intl.string(require("util").t["26C4oi"]);
},
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(4727).computeChannelName(channel, UserStore, RelationshipStore);
const intl5 = channel(1114).intl;
let obj2 = { name: channelName };
const obj5 = channel(4727);
const intl6 = channel(1114).intl;
const obj4 = { name: channelName };
let formatResult = intl6.format(channel(1114).t.SSIVOu, obj4);
let formatToPlainStringResult1 = intl5.formatToPlainString(channel(1114).t.hJ5Ap4, obj2);
if (channel.isManaged()) {
let intl = tmp5(1114).intl;
const obj = { name: channelName };
formatToPlainStringResult1 = intl.formatToPlainString(tmp5(1114).t.hVGjEW, obj);
const intl2 = tmp5(1114).intl;
const obj6 = { name: channelName };
formatResult = intl2.format(tmp5(1114).t.IK1Qvs, obj6);
}
const formatToPlainStringResult = intl5.formatToPlainString(channel(1114).t.hJ5Ap4, obj2);
const obj7 = { title: formatToPlainStringResult1, body: formatResult, confirmText: null, cancelText: null, onConfirm: null };
const intl3 = tmp5(1114).intl;
obj7.confirmText = intl3.string(channel(1114).t["26C4oi"]);
const intl4 = tmp5(1114).intl;
obj7.cancelText = intl4.string(channel(1114).t["ETE/oC"]);
obj7.onConfirm = function onConfirm() {
try {
ChannelActionCreatorsDefault.closePrivateChannel(channel.id);
} catch (err) {
const intl = require("util").intl;
MessageActionCreatorsDefault.sendBotMessage(channel.id, intl.string(require("util").t["YOsuT/"]));
}
};
AlertActionCreatorsDefault.show(obj7);
}
};
const items = [obj];
const size = fn(2);
const result = size.fileFinishedImporting("modules/application_commands/native/ApplicationCommandBuiltIns.tsx");
export default items;