From a85ac96f8214ceef818229673ecf80f524f7e4f4 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 23 Jun 2024 18:01:16 +0300 Subject: [PATCH] Fix /peek typings. Clarify hints for member indices --- public/scripts/slash-commands.js | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index af0ba4a8f..65e4b0bdf 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -522,7 +522,7 @@ SlashCommandParser.addCommandObject(SlashCommand.fromProps({ callback: hideMessageCallback, unnamedArgumentList: [ SlashCommandArgument.fromProps({ - description: 'message index or range', + description: 'message index (starts with 0) or range', typeList: [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.RANGE], isRequired: true, enumProvider: commonEnumProviders.messages(), @@ -535,7 +535,7 @@ SlashCommandParser.addCommandObject(SlashCommand.fromProps({ callback: unhideMessageCallback, unnamedArgumentList: [ SlashCommandArgument.fromProps({ - description: 'message index or range', + description: 'message index (starts with 0) or range', typeList: [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.RANGE], isRequired: true, enumProvider: commonEnumProviders.messages(), @@ -549,7 +549,7 @@ SlashCommandParser.addCommandObject(SlashCommand.fromProps({ aliases: ['disable', 'disablemember', 'memberdisable'], unnamedArgumentList: [ SlashCommandArgument.fromProps({ - description: 'member index or name', + description: 'member index (starts with 0) or name', typeList: [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.STRING], isRequired: true, enumProvider: commonEnumProviders.groupMembers(), @@ -563,7 +563,7 @@ SlashCommandParser.addCommandObject(SlashCommand.fromProps({ callback: enableGroupMemberCallback, unnamedArgumentList: [ SlashCommandArgument.fromProps({ - description: 'member index or name', + description: 'member index (starts with 0) or name', typeList: [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.STRING], isRequired: true, enumProvider: commonEnumProviders.groupMembers(), @@ -603,7 +603,7 @@ SlashCommandParser.addCommandObject(SlashCommand.fromProps({ aliases: ['removemember', 'memberremove'], unnamedArgumentList: [ SlashCommandArgument.fromProps({ - description: 'member index or name', + description: 'member index (starts with 0) or name', typeList: [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.STRING], isRequired: true, enumProvider: commonEnumProviders.groupMembers(), @@ -630,7 +630,7 @@ SlashCommandParser.addCommandObject(SlashCommand.fromProps({ aliases: ['upmember', 'memberup'], unnamedArgumentList: [ SlashCommandArgument.fromProps({ - description: 'member index or name', + description: 'member index (starts with 0) or name', typeList: [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.STRING], isRequired: true, enumProvider: commonEnumProviders.groupMembers(), @@ -644,7 +644,7 @@ SlashCommandParser.addCommandObject(SlashCommand.fromProps({ aliases: ['downmember', 'memberdown'], unnamedArgumentList: [ SlashCommandArgument.fromProps({ - description: 'member index or name', + description: 'member index (starts with 0) or name', typeList: [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.STRING], isRequired: true, enumProvider: commonEnumProviders.groupMembers(), @@ -657,10 +657,10 @@ SlashCommandParser.addCommandObject(SlashCommand.fromProps({ callback: peekCallback, unnamedArgumentList: [ SlashCommandArgument.fromProps({ - description: 'message index or range', - typeList: [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.RANGE], + description: 'member index (starts with 0) or name', + typeList: [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.STRING], isRequired: true, - enumProvider: commonEnumProviders.messages(), + enumProvider: commonEnumProviders.groupMembers(), }), ], helpString: ` @@ -671,12 +671,8 @@ SlashCommandParser.addCommandObject(SlashCommand.fromProps({ Examples: