feat: make streaming edits toggleable per-channel, disabled by default (#436)

This commit is contained in:
Cameron
2026-02-27 16:08:51 -08:00
committed by GitHub
parent 2174736de0
commit 6a2493da5c
7 changed files with 23 additions and 2 deletions

View File

@@ -26,6 +26,7 @@ export interface DiscordConfig {
token: string;
dmPolicy?: DmPolicy; // 'pairing' (default), 'allowlist', or 'open'
allowedUsers?: string[]; // Discord user IDs
streaming?: boolean; // Stream responses via progressive message edits (default: false)
attachmentsDir?: string;
attachmentsMaxBytes?: number;
groups?: Record<string, GroupModeConfig>; // Per-guild/channel settings
@@ -414,7 +415,7 @@ Ask the bot owner to approve with:
}
supportsEditing(): boolean {
return true;
return this.config.streaming ?? false;
}
private async handleReactionEvent(