From d1724227abfb8f0fcd9e573f7e9772cf0be8257a Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sat, 17 Jul 2021 10:25:46 -0400 Subject: honestly no idea what I did at this point --- src/commands/config/prefix.ts | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'src/commands/config/prefix.ts') diff --git a/src/commands/config/prefix.ts b/src/commands/config/prefix.ts index 79956be..380442b 100644 --- a/src/commands/config/prefix.ts +++ b/src/commands/config/prefix.ts @@ -1,4 +1,4 @@ -import { BushCommand, BushMessage, BushSlashMessage } from '@lib'; +import { AllowedMentions, BushCommand, BushMessage, BushSlashMessage } from '@lib'; export default class PrefixCommand extends BushCommand { public constructor() { @@ -40,15 +40,17 @@ export default class PrefixCommand extends BushCommand { const oldPrefix = await message.guild.getSetting('prefix'); await message.guild.setSetting('prefix', args.prefix ?? this.client.config.prefix); if (args.prefix) { - return await message.util.send( - `${this.client.util.emojis.success} changed the server's prefix ${oldPrefix ? `from \`${oldPrefix}\`` : ''} to \`${ - args.prefix - }\`.` - ); + return await message.util.send({ + content: `${this.client.util.emojis.success} changed the server's prefix ${ + oldPrefix ? `from \`${oldPrefix}\`` : '' + } to \`${args.prefix}\`.`, + allowedMentions: AllowedMentions.none() + }); } else { - return await message.util.send( - `${this.client.util.emojis.success} reset the server's prefix to \`${this.client.config.prefix}\`.` - ); + return await message.util.send({ + content: `${this.client.util.emojis.success} reset the server's prefix to \`${this.client.config.prefix}\`.`, + allowedMentions: AllowedMentions.none() + }); } } } -- cgit