diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-17 10:25:46 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-17 10:25:46 -0400 |
commit | d1724227abfb8f0fcd9e573f7e9772cf0be8257a (patch) | |
tree | 52c9dbae1fbbbd3c777d9c16ab643c477141ae21 /src/commands/config/prefix.ts | |
parent | 53d2b18f7f73d5696fb7cd86d1c164a790dfdcc3 (diff) | |
download | tanzanite-d1724227abfb8f0fcd9e573f7e9772cf0be8257a.tar.gz tanzanite-d1724227abfb8f0fcd9e573f7e9772cf0be8257a.tar.bz2 tanzanite-d1724227abfb8f0fcd9e573f7e9772cf0be8257a.zip |
honestly no idea what I did at this point
Diffstat (limited to 'src/commands/config/prefix.ts')
-rw-r--r-- | src/commands/config/prefix.ts | 20 |
1 files changed, 11 insertions, 9 deletions
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() + }); } } } |