decord/alpha/source/modules/messages/ApplicationCommands.tsx

41 lines
1.2 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 06:59:38 +00:00
// Module ID: 8039
// Function ID: 8040
2026-10-03 08:58:59 +00:00
// Name: _slicedToArray
2026-07-29 08:29:29 +00:00
// Dependencies: [32, 2]
2026-07-20 16:05:17 +00:00
// Exports: getApplicationCommand
2026-10-12 06:59:38 +00:00
// Module 8039 (_slicedToArray)
2026-10-03 08:58:59 +00:00
import _slicedToArray from "_slicedToArray" /* 32 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const re1 = /<\/([^\s]+):(\d+)>(?:\s?(.*))?/;
const result = size.fileFinishedImporting("modules/messages/ApplicationCommands.tsx");
2026-07-20 16:05:17 +00:00
export const getApplicationCommand = function getApplicationCommand(content) {
2026-10-03 08:58:59 +00:00
let tmp7;
let tmp8;
let tmp9;
const match = re1.exec(content);
2026-07-20 16:05:17 +00:00
if (null == match) {
return null;
} else {
[r10025, tmp7, tmp8, tmp9] = match;
2026-07-20 16:05:17 +00:00
let tmp2 = null;
2026-10-03 08:58:59 +00:00
_slicedToArray(match, 4);
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
}
const _HermesInternal2 = HermesInternal;
2026-10-03 08:58:59 +00:00
tmp2 = { content: "/" + tmp7 + str2, name: tmp7, id: tmp8, hasOptions: null != tmp9 && "" !== tmp9 };
const obj = { content: "/" + tmp7 + str2, name: tmp7, id: tmp8, hasOptions: null != tmp9 && "" !== tmp9 };
2026-07-20 16:05:17 +00:00
}
}
return tmp2;
}
};