Auto-reply: drop native command flag

This commit is contained in:
Luke K (pr-0f3t)
2026-01-09 04:14:22 -05:00
parent aa64abe84c
commit 5f4df5e336
2 changed files with 2 additions and 6 deletions

View File

@@ -6,7 +6,6 @@ export type ChatCommandDefinition = {
description: string; description: string;
textAliases: string[]; textAliases: string[];
acceptsArgs?: boolean; acceptsArgs?: boolean;
supportsNative?: boolean;
}; };
export type NativeCommandSpec = { export type NativeCommandSpec = {
@@ -141,9 +140,7 @@ export function listChatCommands(): ChatCommandDefinition[] {
} }
export function listNativeCommandSpecs(): NativeCommandSpec[] { export function listNativeCommandSpecs(): NativeCommandSpec[] {
return CHAT_COMMANDS.filter( return CHAT_COMMANDS.map((command) => ({
(command) => command.supportsNative !== false,
).map((command) => ({
name: command.nativeName, name: command.nativeName,
description: command.description, description: command.description,
acceptsArgs: Boolean(command.acceptsArgs), acceptsArgs: Boolean(command.acceptsArgs),

View File

@@ -375,8 +375,7 @@ export function buildCommandsMessage(): string {
const aliasLabel = aliases.length const aliasLabel = aliases.length
? ` (aliases: ${aliases.join(", ")})` ? ` (aliases: ${aliases.join(", ")})`
: ""; : "";
const scopeLabel = command.supportsNative === false ? " (text-only)" : ""; lines.push(`${primary}${aliasLabel} - ${command.description}`);
lines.push(`${primary}${aliasLabel}${scopeLabel} - ${command.description}`);
} }
return lines.join("\n"); return lines.join("\n");
} }