Polish processising of interactions
This commit is contained in:
parent
4c853ae503
commit
8fee5df53e
4 changed files with 25 additions and 10 deletions
|
@ -8,16 +8,26 @@ const commands = [
|
|||
new SlashCommandBuilder()
|
||||
.setName('generate')
|
||||
.setDescription('Generate something.')
|
||||
.addStringOption(option =>
|
||||
option.setName('type')
|
||||
.setDescription('The type of thing to generate.')
|
||||
.setRequired(true)
|
||||
.addChoices(
|
||||
{ name: 'Host', value: 'host' },
|
||||
{ name: 'Gang', value: 'gang' },
|
||||
{ name: 'Corporation', value: 'corporation' },
|
||||
.addSubcommand(subcommand =>
|
||||
subcommand
|
||||
.setName('host')
|
||||
.setDescription('Generate a host.')
|
||||
.addNumberOption(option =>
|
||||
option
|
||||
.setName('rating')
|
||||
.setDescription('The rating of the host.')
|
||||
.setRequired(true)
|
||||
)
|
||||
)
|
||||
.addStringOption(option =>
|
||||
option
|
||||
.setName('type')
|
||||
.setDescription('The type of the host.')
|
||||
.addChoices(
|
||||
{ name: 'Foundation', value: 'foundation' },
|
||||
{ name: 'Framework', value: 'framework' },
|
||||
)
|
||||
)
|
||||
)
|
||||
]
|
||||
.map(command => command.toJSON());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue