generated from Baipyrus/DiscordJS-Template
categorize remove operations
This commit is contained in:
parent
2586ffb155
commit
b812d0e74d
@ -330,26 +330,40 @@ export const data = new SlashCommandBuilder()
|
|||||||
.setRequired(true)
|
.setRequired(true)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.addSubcommand((subcommand) =>
|
.addSubcommandGroup((group) =>
|
||||||
subcommand
|
group
|
||||||
.setName('remove')
|
.setName('remove')
|
||||||
.setDescription('Unregisters a response to a keyword.')
|
.setDescription('Unregisters a response or a keyword.')
|
||||||
.addStringOption((option) =>
|
.addSubcommand((subcommand) =>
|
||||||
option
|
subcommand
|
||||||
.setName('type')
|
.setName('keyword')
|
||||||
.setDescription('The type of data to be removed.')
|
.setDescription('Deletes a keyword completely.')
|
||||||
.setRequired(true)
|
.addStringOption((option) =>
|
||||||
.addChoices(
|
option
|
||||||
{ name: 'Keyword', value: 'keyword' },
|
.setName('keyword')
|
||||||
{ name: 'Response', value: 'response' }
|
.setDescription('The keyword to be deleted.')
|
||||||
|
.setAutocomplete(true)
|
||||||
|
.setRequired(true)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.addStringOption((option) =>
|
.addSubcommand((subcommand) =>
|
||||||
option
|
subcommand
|
||||||
.setName('name')
|
.setName('response')
|
||||||
.setDescription('The name of the data to be removed.')
|
.setDescription('Unregisters a response of a keyword.')
|
||||||
.setAutocomplete(true)
|
.addStringOption((option) =>
|
||||||
.setRequired(true)
|
option
|
||||||
|
.setName('keyword')
|
||||||
|
.setDescription('The keyword that would trigger the response.')
|
||||||
|
.setAutocomplete(true)
|
||||||
|
.setRequired(true)
|
||||||
|
)
|
||||||
|
.addStringOption((option) =>
|
||||||
|
option
|
||||||
|
.setName('name')
|
||||||
|
.setDescription('The name of the data to be removed.')
|
||||||
|
.setAutocomplete(true)
|
||||||
|
.setRequired(true)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.addSubcommand((subcommand) =>
|
.addSubcommand((subcommand) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user