decord/source/modules/application_commands/DraftCommand.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

23 lines
709 B
TypeScript

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