decord/source/modules/application_commands/native/ApplicationCommandBuiltIns.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

73 lines
3.1 KiB
TypeScript

// Module ID: 9445
// Function ID: 9446
// Name: application_commands/ApplicationCommandBuiltIns
// Dependencies: [4286, 1372, 5084, 1895, 7633, 1115, 4791, 4982, 4651, 7566, 2]
// Module 9445 (application_commands/ApplicationCommandBuiltIns)
import ChannelActionCreatorsDefault from "ChannelActionCreators" /* 4651 */;
import AlertActionCreatorsDefault from "AlertActionCreators" /* 4982 */;
import MessageActionCreatorsDefault from "MessageActionCreators" /* 7566 */;
import RelationshipStore from "RelationshipStore" /* 4286 */;
import UserStore from "UserStore" /* 1372 */;
const require = fn;
let obj = { id: "-15", untranslatedName: "leave", displayName: "leave", type: fn(1895).ApplicationCommandType.CHAT, inputType: fn(7633).ApplicationCommandInputType.BUILT_IN, applicationId: fn(5084).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(4791).computeChannelName(channel, UserStore, RelationshipStore);
const intl5 = channel(1115).intl;
let obj2 = { name: channelName };
const obj5 = channel(4791);
const intl6 = channel(1115).intl;
const obj4 = { name: channelName };
let formatResult = intl6.format(channel(1115).t.SSIVOu, obj4);
let formatToPlainStringResult1 = intl5.formatToPlainString(channel(1115).t.hJ5Ap4, obj2);
if (channel.isManaged()) {
let intl = tmp5(1115).intl;
const obj = { name: channelName };
formatToPlainStringResult1 = intl.formatToPlainString(tmp5(1115).t.hVGjEW, obj);
const intl2 = tmp5(1115).intl;
const obj6 = { name: channelName };
formatResult = intl2.format(tmp5(1115).t.IK1Qvs, obj6);
}
const formatToPlainStringResult = intl5.formatToPlainString(channel(1115).t.hJ5Ap4, obj2);
const obj7 = { title: formatToPlainStringResult1, body: formatResult, confirmText: null, cancelText: null, onConfirm: null };
const intl3 = tmp5(1115).intl;
obj7.confirmText = intl3.string(channel(1115).t["26C4oi"]);
const intl4 = tmp5(1115).intl;
obj7.cancelText = intl4.string(channel(1115).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;