/[sudobot]/trunk/deploy-commands.js
ViewVC logotype

Diff of /trunk/deploy-commands.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 297 by rakin, Mon Jul 29 17:29:25 2024 UTC revision 336 by rakin, Mon Jul 29 17:29:36 2024 UTC
# Line 99  let commands = [ Line 99  let commands = [
99              subcommand              subcommand
100                  .setName('view')                  .setName('view')
101                  .setDescription('Get information/stats about a ballot')                  .setDescription('Get information/stats about a ballot')
102                  .addIntegerOption(option => option.setName('id').setDescription('The ballot ID'))),                  .addStringOption(option => option.setName('id').setDescription('The ballot ID'))),
103                    
104      new SlashCommandBuilder().setName('embed').setDescription('Make an embed')      new SlashCommandBuilder().setName('embed').setDescription('Make an embed')
105          .addSubcommand(subcmd =>          .addSubcommand(subcmd =>
# Line 323  let commands = [ Line 323  let commands = [
323    
324      new SlashCommandBuilder().setName('warning').setDescription('Clear, remove or view warnings')      new SlashCommandBuilder().setName('warning').setDescription('Clear, remove or view warnings')
325          .addSubcommand(subcmd => {          .addSubcommand(subcmd => {
326              return subcmd.setName('view').setDescription('View information about a warning').addNumberOption(option => option.setName('id').setDescription("The warning ID").setRequired(true));              return subcmd.setName('view').setDescription('View information about a warning').addStringOption(option => option.setName('id').setDescription("The warning ID").setRequired(true));
327          })          })
328          .addSubcommand(subcmd => {          .addSubcommand(subcmd => {
329              return subcmd.setName('remove').setDescription('Remove a warning').addNumberOption(option => option.setName('id').setDescription("The warning ID").setRequired(true));              return subcmd.setName('remove').setDescription('Remove a warning').addStringOption(option => option.setName('id').setDescription("The warning ID").setRequired(true));
330          })          })
331          .addSubcommand(subcmd => {          .addSubcommand(subcmd => {
332              return subcmd.setName('list').setDescription('List warnings for a user').addUserOption(option => option.setName('user').setDescription("The user").setRequired(true));              return subcmd.setName('list').setDescription('List warnings for a user').addUserOption(option => option.setName('user').setDescription("The user").setRequired(true));

Legend:
Removed from v.297  
changed lines
  Added in v.336

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26