From 64556dee1f17de558d291a4e42a40a7fc663ccd2 Mon Sep 17 00:00:00 2001 From: Zoriot Date: Mon, 3 Aug 2026 10:34:22 +0200 Subject: [PATCH] feat(suggestion): add silent option to status command Add optional 'silent' boolean argument to /suggestion status command that prevents notifying the suggestion creator when their suggestion's status is changed. By default, creators are notified as before. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/commands/suggestion.command.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/commands/suggestion.command.ts b/src/commands/suggestion.command.ts index c1998531..b23a2311 100644 --- a/src/commands/suggestion.command.ts +++ b/src/commands/suggestion.command.ts @@ -119,6 +119,13 @@ export default new Command({ description: "Suggestion status reason.", required: false, optionType: "STRING" + }, + { + name: "silent", + description: + "Don't notify the suggestion creator about the status change.", + required: false, + optionType: "BOOLEAN" } ] }, @@ -443,6 +450,7 @@ export default new Command({ const oldStatus = suggestion.status const status = args.consume("status").toLowerCase() const reason = args.consumeRest(["reason"]) + const silent = args.consumeBoolean("silent") if (!(status in suggestionStatusActions)) { const formatted = humanizeArray(Object.keys(suggestionStatusActions)) return message.sendErrorMessage("specifyNewStatus", formatted) @@ -490,7 +498,7 @@ export default new Command({ const author: User | null = await client.users .fetch(suggestion.author, { force: true }) .catch(noop) - if (author) { + if (author && !silent) { const dms = (await author.createDM()) as DMChannel const updater = `<@${suggestion.statusUpdater}>` // marked as something -> marked your suggestion as something