Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
73 lines
3.1 KiB
TypeScript
73 lines
3.1 KiB
TypeScript
// Module ID: 9394
|
|
// Function ID: 9395
|
|
// Name: application_commands/ApplicationCommandBuiltIns
|
|
// Dependencies: [4255, 1371, 5051, 1894, 7597, 1114, 4760, 4951, 4620, 7530, 2]
|
|
|
|
// Module 9394 (application_commands/ApplicationCommandBuiltIns)
|
|
import ChannelActionCreatorsDefault from "ChannelActionCreators" /* 4620 */;
|
|
import AlertActionCreatorsDefault from "AlertActionCreators" /* 4951 */;
|
|
import MessageActionCreatorsDefault from "MessageActionCreators" /* 7530 */;
|
|
import RelationshipStore from "RelationshipStore" /* 4255 */;
|
|
import UserStore from "UserStore" /* 1371 */;
|
|
|
|
const require = fn;
|
|
let obj = { id: "-15", untranslatedName: "leave", displayName: "leave", type: fn(1894).ApplicationCommandType.CHAT, inputType: fn(7597).ApplicationCommandInputType.BUILT_IN, applicationId: fn(5051).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(4760).computeChannelName(channel, UserStore, RelationshipStore);
|
|
const intl5 = channel(1114).intl;
|
|
let obj2 = { name: channelName };
|
|
const obj5 = channel(4760);
|
|
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;
|