/[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 290 by rakin, Mon Jul 29 17:29:23 2024 UTC revision 336 by rakin, Mon Jul 29 17:29:36 2024 UTC
# Line 70  let commands = [ Line 70  let commands = [
70      new SlashCommandBuilder().setName('lookup').setDescription('Lookup something')      new SlashCommandBuilder().setName('lookup').setDescription('Lookup something')
71          .addSubcommand(subcommand => subcommand.setName("user").setDescription("User lookup")          .addSubcommand(subcommand => subcommand.setName("user").setDescription("User lookup")
72              .addUserOption(option => option.setName("user").setDescription("The user to search").setRequired(true))              .addUserOption(option => option.setName("user").setDescription("The user to search").setRequired(true))
73          )              )
74          .addSubcommand(subcommand => subcommand.setName("guild").setDescription("Server/Guild lookup")              .addSubcommand(subcommand => subcommand.setName("guild").setDescription("Server/Guild lookup")
75              .addStringOption(option => option.setName("server").setDescription("The ID of the server/guild to lookup").setRequired(true))                    .addStringOption(option => option.setName("guild_id").setDescription("The ID of the server/guild to lookup").setRequired(true))
76          ),              )
77                .addSubcommand(subcommand => subcommand.setName("avatar").setDescription("Avatar lookup using Google Image Search")
78                    .addUserOption(option => option.setName("user").setDescription("The user to lookup").setRequired(true))
79                ),
80    
81      new SlashCommandBuilder().setName('profile').setDescription('Show someone\'s profile')      new SlashCommandBuilder().setName('profile').setDescription('Show someone\'s profile')
82          .addUserOption(option => option.setName('user').setDescription('The user')),          .addUserOption(option => option.setName('user').setDescription('The user')),
# Line 96  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 320  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.290  
changed lines
  Added in v.336

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26