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
45
46
47
48
49
50
51
52
53
54
55
56
|
// import { BushCommand, BushMessage, BushSlashMessage, guildSettings } from '@lib';
// export default class SettingsCommand extends BushCommand {
// public constructor() {
// super('settings', {
// aliases: ['settings', 'settings', 'configure', 'config'],
// category: 'config',
// description: {
// content: 'Configure server options. Hint this is easier to use with the slash command.',
// usage: 'config <\'add\'|\'remove\'|\'toggle\'> <setting>',
// examples: ['template 1 2']
// },
// args: [
// {
// id: 'action',
// customType: ['add', 'remove', 'toggle'],
// prompt: {
// start: 'What action would you like to perform, it can be `add`, `remove`, or `toggle`.',
// retry: '{error} Choose a either `add`, `remove`, or `toggle`.',
// optional: false
// }
// },
// {
// id: 'setting',
// customType: Object.keys(guildSettings),
// prompt: {
// start: 'What would you like to set your second argument to be?',
// retry: '{error} Pick a valid argument.',
// optional: true
// }
// }
// ],
// slash: true,
// slashOptions: [
// {
// name: 'required_argument',
// description: 'What would you like to set your first argument to be?',
// type: 'STRING',
// required: true
// },
// {
// name: 'optional_argument',
// description: 'What would you like to set your second argument to be?',
// type: 'STRING',
// required: false
// }
// ],
// channel: 'guild',
// clientPermissions: ['SEND_MESSAGES'],
// userPermissions: ['SEND_MESSAGES']
// });
// }
// public override async exec(message: BushMessage | BushSlashMessage): Promise<unknown> {
// return await message.util.reply(`${util.emojis.error} Do not use the template command.`);
// }
// }
|