decord/beta/source/modules/messages/ApplicationCommands.tsx
github-actions e7a050048e chore: update source for beta 347.7
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-21 19:31:18 +00:00

40 lines
1.1 KiB
TypeScript

// Module ID: 8273
// Function ID: 8274
// Name: ApplicationCommands
// Dependencies: [32, 2]
// Exports: getApplicationCommand
// Module 8273 (ApplicationCommands)
import _slicedToArray from "module_32" /* 32 */;
const re1 = /<\/([^\s]+):(\d+)>(?:\s?(.*))?/;
const size = fn(2);
const result = size.fileFinishedImporting("modules/messages/ApplicationCommands.tsx");
export const getApplicationCommand = function getApplicationCommand(content) {
const match = re1.exec(content);
if (null == match) {
return null;
} else {
[r10025, tmp7, tmp8, tmp9] = match;
let tmp2 = null;
if (null != tmp7) {
tmp2 = null;
if (null != tmp8) {
let str2 = "";
if (null != tmp9) {
const _HermesInternal = HermesInternal;
str2 = " " + tmp9;
}
const obj = { content: null, name: null, id: null, hasOptions: null };
const _HermesInternal2 = HermesInternal;
obj.content = "/" + tmp7 + str2;
obj.name = tmp7;
obj.id = tmp8;
obj.hasOptions = null != tmp9 && "" !== tmp9;
tmp2 = obj;
}
}
return tmp2;
}
};