decord/source/modules/messages/ApplicationCommands.tsx
2026-07-21 06:55:02 +00:00

41 lines
1.2 KiB
TypeScript

// Module ID: 7690
// Function ID: 61352
// Name: getApplicationCommand
// Dependencies: [1953825491, 683]
// Exports: getApplicationCommand
// Module 7690 (getApplicationCommand)
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
let closure_0 = importDefault(dependencyMap[0]);
let closure_1 = /<\/([^\s]+):(\d+)>(?:\s?(.*))?/;
const result = _isNativeReflectConstruct.fileFinishedImporting("modules/messages/ApplicationCommands.tsx");
export const getApplicationCommand = function getApplicationCommand(content) {
const match = regex.exec(content);
if (null == match) {
return null;
} else {
const tmp6 = callback(match, 4);
const first = tmp6[0];
let tmp2 = null;
if (null != tmp6[1]) {
tmp2 = null;
if (null != tmp9) {
const obj = {};
let str2 = "";
if (null != tmp10) {
const _HermesInternal = HermesInternal;
str2 = " " + tmp10;
}
const _HermesInternal2 = HermesInternal;
obj.content = "/" + tmp8 + str2;
obj.name = tmp8;
obj.id = tmp9;
obj.hasOptions = null != tmp10 && "" !== tmp10;
tmp2 = obj;
}
}
return tmp2;
}
};