aboutsummaryrefslogtreecommitdiff
path: root/src/commands/config/autoPublishChannel.ts
blob: d691a7f56862f6971ed85f469d6bc7341e696074 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { BushCommand, BushMessage } from '@lib';

export default class AutoPublishChannelCommand extends BushCommand {
	public constructor() {
		super('autoPublishChannel', {
			aliases: ['autopublishchannel', 'apc', 'publishchannel', 'autopublishchannels', 'publishchannels', 'autopublish'],
			category: 'config',
			description: {
				content: 'This command has been deprecated, please use the config command instead',
				usage: 'autopublishchannel <channel>',
				examples: ['autopublishchannel #github']
			},
			channel: 'guild',
			hidden: true,
			clientPermissions: ['SEND_MESSAGES'],
			userPermissions: ['MANAGE_GUILD', 'SEND_MESSAGES']
		});
	}

	public override async exec(message: BushMessage): Promise<unknown> {
		return message.util.reply(`${util.emojis.error} 'This command has been deprecated, please use the config command instead'`);
	}
}