decord/source/modules/application_commands/DraftCommand.tsx
github-actions 4f02868c60 chore: update source for alpha 346.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
2026-09-11 10:30:06 +00:00

23 lines
692 B
TypeScript

// Module ID: 4950
// Function ID: 4951
// Name: DraftCommand
// Dependencies: [2]
// Exports: isDraftCommandValidForText
// Module 4950 (DraftCommand)
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/application_commands/DraftCommand.tsx");
export const isDraftCommandValidForText = function isDraftCommandValidForText(command1, substr) {
let tmp = null != command1;
if (tmp) {
let startsWithResult = substr === command1.commandText;
if (!startsWithResult) {
const _HermesInternal = HermesInternal;
startsWithResult = substr.startsWith("" + command1.commandText + " ");
}
tmp = startsWithResult;
}
return tmp;
};