From 42d2e2bf01b5debd4ecf605297f925ad5da7deb3 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 30 Sep 2021 16:48:07 -0400 Subject: I did this 2 weeks ago idk what I did --- src/commands/config/levelRoles.ts | 61 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 src/commands/config/levelRoles.ts (limited to 'src/commands/config/levelRoles.ts') diff --git a/src/commands/config/levelRoles.ts b/src/commands/config/levelRoles.ts new file mode 100644 index 0000000..df63914 --- /dev/null +++ b/src/commands/config/levelRoles.ts @@ -0,0 +1,61 @@ +import { BushCommand, BushMessage, BushSlashMessage } from '@lib'; + +export default class LevelRolesCommand extends BushCommand { + public constructor() { + super('levelRole', { + aliases: ['levelrole', 'levelroles', 'lr'], + category: 'config', + description: { + content: 'Command description.', + usage: 'levelrole ', + examples: ['levelrole 1 2'] + }, + args: [ + { + id: 'role', + type: 'role', + prompt: { + start: 'What would you like to set your first argument to be?', + retry: '{error} Pick a valid argument.', + optional: false + } + }, + { + id: 'level', + type: 'integer', + prompt: { + start: 'What would you like to set your second argument to be?', + retry: '{error} Pick a valid argument.', + optional: false + } + } + ], + slash: true, + slashOptions: [ + { + name: 'role', + description: 'What would you like to set your first argument to be?', + type: 'STRING', + required: true + }, + { + name: 'level', + description: 'What would you like to set your second argument to be?', + type: 'STRING', + required: true + } + ], + channel: 'guild', + clientPermissions: ['SEND_MESSAGES'], + userPermissions: ['SEND_MESSAGES', 'MANAGE_GUILD', 'MANAGE_ROLES'] + }); + } + + 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; + } +} -- cgit