From b105a2ef24a1a33574443816146c16a463a7f88a Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 23 Jun 2024 18:10:56 +0300 Subject: [PATCH] Add missing /trigger unnamed type, fix names for ask and delname --- public/scripts/slash-commands.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index 65e4b0bdf..8e7ce0326 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -399,7 +399,7 @@ SlashCommandParser.addCommandObject(SlashCommand.fromProps({ description: 'character name', typeList: [ARGUMENT_TYPE.STRING], isRequired: true, - enumProvider: commonEnumProviders.characters('all'), + enumProvider: commonEnumProviders.characters('character'), }), ], unnamedArgumentList: [ @@ -418,7 +418,7 @@ SlashCommandParser.addCommandObject(SlashCommand.fromProps({ description: 'name', typeList: [ARGUMENT_TYPE.STRING], isRequired: true, - enumProvider: commonEnumProviders.characters('all'), + enumProvider: commonEnumProviders.characters('character'), }), ], aliases: ['cancel'], @@ -508,6 +508,14 @@ SlashCommandParser.addCommandObject(SlashCommand.fromProps({ 'false', ), ], + unnamedArgumentList: [ + SlashCommandArgument.fromProps({ + description: 'group member index (starts with 0) or name', + typeList: [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.STRING], + isRequired: false, + enumProvider: commonEnumProviders.groupMembers(), + }), + ], helpString: `