From 79aaf8893b6bae37f30349e7f8ffa9882c129511 Mon Sep 17 00:00:00 2001 From: CKY- Date: Thu, 12 Dec 2024 11:08:12 -0700 Subject: [PATCH 1/2] feat: add send as reply as an option in restrictions --- .../chat/commands/chat-command-handler.ts | 2 +- .../restrictions/restrictionsSection.js | 18 +++++++++++++++--- src/types/restrictions.d.ts | 3 +++ 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/backend/chat/commands/chat-command-handler.ts b/src/backend/chat/commands/chat-command-handler.ts index 2bb84bfa8..3717afaa1 100644 --- a/src/backend/chat/commands/chat-command-handler.ts +++ b/src/backend/chat/commands/chat-command-handler.ts @@ -258,7 +258,7 @@ class CommandHandler { .replace("{reason}", reason), null, null, - firebotChatMessage.id + restrictionData.sendAsReply === true ? firebotChatMessage.id : undefined ); } diff --git a/src/gui/app/directives/restrictions/restrictionsSection.js b/src/gui/app/directives/restrictions/restrictionsSection.js index 9dc388329..5bf9b3f0c 100644 --- a/src/gui/app/directives/restrictions/restrictionsSection.js +++ b/src/gui/app/directives/restrictions/restrictionsSection.js @@ -59,7 +59,14 @@ +
+