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 }); } }