decord/source/modules/application_commands/DraftCommand.tsx

24 lines
692 B
TypeScript
Raw Normal View History

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