Discord: drop enableReactions config

This commit is contained in:
Shadow
2026-01-02 17:47:09 -06:00
committed by Peter Steinberger
parent 6bab813bb3
commit 0c38f2df2a
14 changed files with 9 additions and 58 deletions

View File

@@ -143,7 +143,6 @@ export class ClawdisApp extends LitElement {
groupChannels: "",
mediaMaxMb: "",
historyLimit: "",
enableReactions: true,
slashEnabled: false,
slashName: "",
slashSessionPrefix: "",

View File

@@ -99,8 +99,6 @@ export function applyConfigSnapshot(state: ConfigState, snapshot: ConfigSnapshot
typeof discord.mediaMaxMb === "number" ? String(discord.mediaMaxMb) : "",
historyLimit:
typeof discord.historyLimit === "number" ? String(discord.historyLimit) : "",
enableReactions:
typeof discord.enableReactions === "boolean" ? discord.enableReactions : true,
slashEnabled: typeof slash.enabled === "boolean" ? slash.enabled : false,
slashName: typeof slash.name === "string" ? slash.name : "",
slashSessionPrefix:

View File

@@ -246,12 +246,6 @@ export async function saveDiscordConfig(state: ConnectionsState) {
}
}
if (form.enableReactions) {
delete discord.enableReactions;
} else {
discord.enableReactions = false;
}
const slash = { ...(discord.slashCommand ?? {}) } as Record<string, unknown>;
if (form.slashEnabled) {
slash.enabled = true;

View File

@@ -16,7 +16,6 @@ export type DiscordForm = {
groupChannels: string;
mediaMaxMb: string;
historyLimit: string;
enableReactions: boolean;
slashEnabled: boolean;
slashName: string;
slashSessionPrefix: string;

View File

@@ -522,19 +522,6 @@ function renderProvider(
placeholder="20"
/>
</label>
<label class="field">
<span>Reactions</span>
<select
.value=${props.discordForm.enableReactions ? "yes" : "no"}
@change=${(e: Event) =>
props.onDiscordChange({
enableReactions: (e.target as HTMLSelectElement).value === "yes",
})}
>
<option value="yes">Enabled</option>
<option value="no">Disabled</option>
</select>
</label>
<label class="field">
<span>Slash command</span>
<select