disable reply mention

This commit is contained in:
Erik 2024-03-28 21:54:26 +02:00
parent 72c93ab04c
commit eb08573bdd

View File

@ -12,6 +12,7 @@ import Util from '../../../utilities/Util.js';
import { stripIndents } from 'common-tags'; import { stripIndents } from 'common-tags';
const allowedMentions = { repliedUser: false };
class CommandHandler extends Observer class CommandHandler extends Observer
{ {
#parser: Parser; #parser: Parser;
@ -46,7 +47,6 @@ class CommandHandler extends Observer
async #parseCommand (message: Message): Promise<void> async #parseCommand (message: Message): Promise<void>
{ {
const allowedMentions = { repliedUser: false };
const { author } = message; const { author } = message;
if (author.bot) if (author.bot)
return; return;
@ -155,7 +155,6 @@ class CommandHandler extends Observer
async #executeCommand (message: Message, command: ICommand, rest: CommandOpts) async #executeCommand (message: Message, command: ICommand, rest: CommandOpts)
{ {
const allowedMentions = { repliedUser: false };
let response: string | APIEmbed | null | unknown = null; let response: string | APIEmbed | null | unknown = null;
try try
{ {
@ -287,7 +286,7 @@ class CommandHandler extends Observer
`; `;
} }
message.reply(output); return this.client.sendSplitMessage(message, output, { allowedMentions });
} }
} }