generated from Baipyrus/DiscordJS-Template
categorize remove operations
This commit is contained in:
parent
2586ffb155
commit
b812d0e74d
@ -330,20 +330,33 @@ export const data = new SlashCommandBuilder()
|
||||
.setRequired(true)
|
||||
)
|
||||
)
|
||||
.addSubcommandGroup((group) =>
|
||||
group
|
||||
.setName('remove')
|
||||
.setDescription('Unregisters a response or a keyword.')
|
||||
.addSubcommand((subcommand) =>
|
||||
subcommand
|
||||
.setName('remove')
|
||||
.setDescription('Unregisters a response to a keyword.')
|
||||
.setName('keyword')
|
||||
.setDescription('Deletes a keyword completely.')
|
||||
.addStringOption((option) =>
|
||||
option
|
||||
.setName('type')
|
||||
.setDescription('The type of data to be removed.')
|
||||
.setName('keyword')
|
||||
.setDescription('The keyword to be deleted.')
|
||||
.setAutocomplete(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) =>
|
||||
option
|
||||
.setName('name')
|
||||
@ -352,6 +365,7 @@ export const data = new SlashCommandBuilder()
|
||||
.setRequired(true)
|
||||
)
|
||||
)
|
||||
)
|
||||
.addSubcommand((subcommand) =>
|
||||
subcommand.setName('list').setDescription('Lists all registered keywords.')
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user