Add missing /trigger unnamed type, fix names for ask and delname

This commit is contained in:
Cohee
2024-06-23 18:10:56 +03:00
parent a85ac96f82
commit b105a2ef24

View File

@ -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: `
<div>
Triggers a message generation. If in group, can trigger a message for the specified group member index or name.