decord/source/modules/messages/ApplicationCommands.tsx

43 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-08-12 06:57:52 +00:00
// Module ID: 8158
// Function ID: 8159
2026-07-20 16:05:17 +00:00
// Name: getApplicationCommand
2026-07-29 08:29:29 +00:00
// Dependencies: [32, 2]
2026-07-20 16:05:17 +00:00
// Exports: getApplicationCommand
2026-08-12 06:57:52 +00:00
// Module 8158 (getApplicationCommand)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
const re1 = /<\/([^\s]+):(\d+)>(?:\s?(.*))?/;
const result = require("set").fileFinishedImporting("modules/messages/ApplicationCommands.tsx");
2026-07-20 16:05:17 +00:00
export const getApplicationCommand = function getApplicationCommand(content) {
2026-07-29 08:29:29 +00:00
let tmp7;
let tmp8;
let tmp9;
2026-07-20 16:05:17 +00:00
const match = regex.exec(content);
if (null == match) {
return null;
} else {
2026-07-29 08:29:29 +00:00
[r10025, tmp7, tmp8, tmp9] = callback(match, 4);
2026-07-20 16:05:17 +00:00
let tmp2 = null;
2026-07-29 08:29:29 +00:00
if (null != tmp7) {
2026-07-20 16:05:17 +00:00
tmp2 = null;
2026-07-29 08:29:29 +00:00
if (null != tmp8) {
2026-07-20 16:05:17 +00:00
let str2 = "";
2026-07-29 08:29:29 +00:00
if (null != tmp9) {
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal;
2026-07-29 08:29:29 +00:00
str2 = " " + tmp9;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj = { content: null, name: null, id: null, hasOptions: null };
2026-07-20 16:05:17 +00:00
const _HermesInternal2 = HermesInternal;
2026-07-29 08:29:29 +00:00
obj[0] = "/" + tmp7 + str2;
obj[1] = tmp7;
obj[2] = tmp8;
obj[3] = null != tmp9 && "" !== tmp9;
2026-07-20 16:05:17 +00:00
tmp2 = obj;
}
}
return tmp2;
}
};