categorize remove operations

This commit is contained in:
Baipyrus 2024-04-05 10:54:49 +02:00
parent 2586ffb155
commit b812d0e74d

View File

@ -330,20 +330,33 @@ export const data = new SlashCommandBuilder()
.setRequired(true) .setRequired(true)
) )
) )
.addSubcommandGroup((group) =>
group
.setName('remove')
.setDescription('Unregisters a response or a keyword.')
.addSubcommand((subcommand) => .addSubcommand((subcommand) =>
subcommand subcommand
.setName('remove') .setName('keyword')
.setDescription('Unregisters a response to a keyword.') .setDescription('Deletes a keyword completely.')
.addStringOption((option) => .addStringOption((option) =>
option option
.setName('type') .setName('keyword')
.setDescription('The type of data to be removed.') .setDescription('The keyword to be deleted.')
.setAutocomplete(true)
.setRequired(true) .setRequired(true)
.addChoices(
{ name: 'Keyword', value: 'keyword' },
{ name: 'Response', value: 'response' }
) )
) )
.addSubcommand((subcommand) =>
subcommand
.setName('response')
.setDescription('Unregisters a response of a keyword.')
.addStringOption((option) =>
option
.setName('keyword')
.setDescription('The keyword that would trigger the response.')
.setAutocomplete(true)
.setRequired(true)
)
.addStringOption((option) => .addStringOption((option) =>
option option
.setName('name') .setName('name')
@ -352,6 +365,7 @@ export const data = new SlashCommandBuilder()
.setRequired(true) .setRequired(true)
) )
) )
)
.addSubcommand((subcommand) => .addSubcommand((subcommand) =>
subcommand.setName('list').setDescription('Lists all registered keywords.') subcommand.setName('list').setDescription('Lists all registered keywords.')
) )