From eb08573bdd2b25c79331eeb40d4da22985b38362 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Thu, 28 Mar 2024 21:54:26 +0200 Subject: [PATCH] disable reply mention --- src/client/components/observers/CommandHandler.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/client/components/observers/CommandHandler.ts b/src/client/components/observers/CommandHandler.ts index eddc38f..43f8383 100644 --- a/src/client/components/observers/CommandHandler.ts +++ b/src/client/components/observers/CommandHandler.ts @@ -12,6 +12,7 @@ import Util from '../../../utilities/Util.js'; import { stripIndents } from 'common-tags'; +const allowedMentions = { repliedUser: false }; class CommandHandler extends Observer { #parser: Parser; @@ -46,7 +47,6 @@ class CommandHandler extends Observer async #parseCommand (message: Message): Promise { - const allowedMentions = { repliedUser: false }; const { author } = message; if (author.bot) return; @@ -155,7 +155,6 @@ class CommandHandler extends Observer async #executeCommand (message: Message, command: ICommand, rest: CommandOpts) { - const allowedMentions = { repliedUser: false }; let response: string | APIEmbed | null | unknown = null; try { @@ -287,7 +286,7 @@ class CommandHandler extends Observer `; } - message.reply(output); + return this.client.sendSplitMessage(message, output, { allowedMentions }); } }