1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
// import { BushCommand, BushMessage, BushSlashMessage, guildFeatures } from '@lib';
// import { MessageEmbed } from 'discord.js';
// export default class FeaturesCommand extends BushCommand {
// public constructor() {
// super('features', {
// aliases: ['features'],
// category: 'config',
// description: {
// content: 'Toggle features the server.',
// usage: 'features',
// examples: ['features']
// },
// slash: true,
// channel: 'guild',
// clientPermissions: ['SEND_MESSAGES', 'EMBED_LINKS'],
// userPermissions: ['SEND_MESSAGES', 'MANAGE_GUILD'],
// ownerOnly: true
// });
// }
// public override async exec(message: BushMessage | BushSlashMessage): Promise<unknown> {
// if (!message.guild) return await message.util.reply(`${util.emojis.error} This command can only be used in servers.`);
// const featureEmbed = await this.generateEmbed(message);
// return await message.util.reply({ embeds: [featureEmbed] });
// }
// public async handleInteraction(): Promise<void> {
// }
// public async generateEmbed(message: BushMessage | BushSlashMessage): Promise<MessageEmbed> {
// const featureEmbed = new MessageEmbed().setTitle(`${message.guild!.name}'s Features`).setColor(util.colors.default);
// const featureList: string[] = [];
// const enabledFeatures = await message.guild!.getSetting('enabledFeatures');
// guildFeatures.forEach((feature) => {
// featureList.push(`**${feature}:** ${enabledFeatures.includes(feature) ? util.emojis.check : util.emojis.cross}`);
// });
// return featureEmbed.setDescription(featureList.join('\n'));
// }
// public async generateButtons(): Promise<void>{
// }
// }
|