diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-31 18:45:23 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-31 18:45:23 -0400 |
commit | a47ef150fd38fff3666faccd6f976f660fdbf9f3 (patch) | |
tree | 3f73c3d03236b09bf824469791f4ef7d2016b0b7 /src/commands/config/muteRole.ts | |
parent | 9aa46f79516c0c044742339c59d471b43060d84f (diff) | |
download | tanzanite-a47ef150fd38fff3666faccd6f976f660fdbf9f3.tar.gz tanzanite-a47ef150fd38fff3666faccd6f976f660fdbf9f3.tar.bz2 tanzanite-a47ef150fd38fff3666faccd6f976f660fdbf9f3.zip |
cleanup and deprecated old config commands
Diffstat (limited to 'src/commands/config/muteRole.ts')
-rw-r--r-- | src/commands/config/muteRole.ts | 34 |
1 files changed, 5 insertions, 29 deletions
diff --git a/src/commands/config/muteRole.ts b/src/commands/config/muteRole.ts index c7a6e75..6d3c9f6 100644 --- a/src/commands/config/muteRole.ts +++ b/src/commands/config/muteRole.ts @@ -1,5 +1,4 @@ -import { AllowedMentions, BushCommand, BushMessage, BushSlashMessage } from '@lib'; -import { Role } from 'discord.js'; +import { BushCommand, BushMessage, BushSlashMessage } from '@lib'; export default class MuteRoleCommand extends BushCommand { public constructor() { @@ -7,41 +6,18 @@ export default class MuteRoleCommand extends BushCommand { aliases: ['muterole'], category: 'config', description: { - content: 'Configure what role to use when muting users.', + content: 'This command has been deprecated, please use the config command instead', usage: 'muterole <role>', examples: ['muterole 748912426581229690'] }, - args: [ - { - id: 'role', - type: 'role', - prompt: { - start: "What would you like to set the server's mute role to?", - retry: '{error} Choose a valid role.', - optional: false - } - } - ], - slash: true, - slashOptions: [ - { - name: 'role', - description: "What would you like to set the server's mute role to?", - type: 'ROLE', - required: true - } - ], channel: 'guild', + hidden: true, clientPermissions: ['SEND_MESSAGES'], userPermissions: ['SEND_MESSAGES', 'MANAGE_GUILD'] }); } - override async exec(message: BushMessage | BushSlashMessage, args: { role: Role }): Promise<void> { - await message.guild!.setSetting('muteRole', args.role.id); - await message.util.send({ - content: `${util.emojis.success} Changed the server's mute role to <@&${args.role.id}>.`, - allowedMentions: AllowedMentions.none() - }); + override async exec(message: BushMessage | BushSlashMessage): Promise<unknown> { + return message.util.reply(`${util.emojis.error} 'This command has been deprecated, please use the config command instead'`); } } |