diff options
Diffstat (limited to 'src/commands/moderation/_lockdown.ts')
-rw-r--r-- | src/commands/moderation/_lockdown.ts | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/commands/moderation/_lockdown.ts b/src/commands/moderation/_lockdown.ts deleted file mode 100644 index 08d4011..0000000 --- a/src/commands/moderation/_lockdown.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { BushCommand, type BushMessage, type BushNewsChannel, type BushSlashMessage, type BushTextChannel } from '#lib'; - -export default class LockdownCommand extends BushCommand { - public constructor() { - super('lockdown', { - aliases: ['lockdown', 'unlockdown'], - category: 'moderation', - description: 'Allows you to lockdown a channel or all configured channels..', - usage: ['lockdown [--all]'], - examples: ['lockdown', 'lockdown --all'], - args: [ - { - id: 'all', - description: 'Whether or not to lock all channels', - match: 'flag', - flag: '--all', - prompt: 'Would you like to lockdown all channels?', - slashType: 'BOOLEAN', - optional: true - } - ], - slash: true, - channel: 'guild', - clientPermissions: (m) => util.clientSendAndPermCheck(m), - userPermissions: [], - hidden: true - }); - } - - public override async exec(message: BushMessage | BushSlashMessage, args: { all: boolean }) { - // todo stop being lazy - return await message.util.reply('Unfortunately my developer is too lazy to implement this command.'); - if (!args.all) { - if (!['GUILD_TEXT', 'GUILD_NEWS'].includes(message.channel!.type)) - return message.util.reply(`${util.emojis.error} You can only lock down text and announcement channels.`); - - // eslint-disable-next-line @typescript-eslint/no-unused-vars - const lockdownSuccess = await util.lockdownChannel({ - channel: message.channel as BushTextChannel | BushNewsChannel, - moderator: message.author - }); - } - } -} |