decord/source/modules/application_commands/DraftCommand.tsx

24 lines
709 B
TypeScript
Raw Normal View History

2026-09-03 10:05:34 +00:00
// Module ID: 4857
// Function ID: 4858
2026-08-31 15:47:37 +00:00
// Name: isDraftCommandValidForText
// Dependencies: [2]
// Exports: isDraftCommandValidForText
2026-09-03 10:05:34 +00:00
// Module 4857 (isDraftCommandValidForText)
2026-08-31 15:47:37 +00:00
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;
};