import { BushCommand, BushMessage, BushSlashMessage } from '@lib'; export default class TemplateCommand extends BushCommand { public constructor() { super('template', { aliases: ['template'], category: 'template', description: { content: 'Command description.', usage: 'template [optionalArg]', examples: ['template 1 2'] }, args: [ { id: 'required_argument', type: 'string', match: 'phrase', prompt: { start: 'What would you like to set your first argument to be?', retry: '{error} Pick a valid argument.', optional: false } }, { id: 'optional_argument', type: 'string', match: 'phrase', prompt: { start: 'What would you like to set your second argument to be?', retry: '{error} Pick a valid argument.', optional: true } } ], slash: false, //set this to 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 } ], superUserOnly: true, ownerOnly: true, channel: 'guild', hidden: true, clientPermissions: ['SEND_MESSAGES'], userPermissions: ['SEND_MESSAGES'] }); } public async exec(message: BushMessage | BushSlashMessage): Promise { return await message.util.reply(`${util.emojis.error} Do not use the template command.`); } }