disable reply mention
This commit is contained in:
parent
72c93ab04c
commit
eb08573bdd
@ -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<void>
|
||||
{
|
||||
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 });
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user