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', 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', 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: (m) => util.clientSendAndPermCheck(m), userPermissions: [] }); } public override async exec( message: BushMessage | BushSlashMessage, args: { required_argument: string; optional_argument: string } ): Promise { return await message.util.reply(`${util.emojis.error} Do not use the template command.`); args; } }