diff options
Diffstat (limited to 'src/commands/dev/__template.ts')
-rw-r--r-- | src/commands/dev/__template.ts | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/src/commands/dev/__template.ts b/src/commands/dev/__template.ts new file mode 100644 index 0000000..ffc67ae --- /dev/null +++ b/src/commands/dev/__template.ts @@ -0,0 +1,61 @@ +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 <requiredArg> [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<unknown> { + return await message.util.reply(`${this.client.util.emojis.error} Do not use the template command.`); + } +} |