/[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 71 by rakin, Mon Jul 29 17:28:28 2024 UTC revision 79 by rakin, Mon Jul 29 17:28:30 2024 UTC
# Line 67  let commands = [ Line 67  let commands = [
67      new SlashCommandBuilder().setName('avatar').setDescription('Show someone\'s avatar')      new SlashCommandBuilder().setName('avatar').setDescription('Show someone\'s avatar')
68          .addUserOption(option => option.setName('user').setDescription('The user')),          .addUserOption(option => option.setName('user').setDescription('The user')),
69      new SlashCommandBuilder().setName('rolelist').setDescription('List all roles or show info about a role')      new SlashCommandBuilder().setName('rolelist').setDescription('List all roles or show info about a role')
70          .addUserOption(option => option.setName('role').setDescription('The role')),          .addRoleOption(option => option.setName('role').setDescription('The role'))
71            .addIntegerOption(option => option.setName('page').setDescription('The page number')),
72    
73      // AUTOMATION      // AUTOMATION
74      new SlashCommandBuilder().setName('ballot').setDescription('Ballot engine')      new SlashCommandBuilder().setName('ballot').setDescription('Ballot engine')
# Line 228  let commands = [ Line 229  let commands = [
229      new SlashCommandBuilder().setName('history').setDescription('Fetch all moderation history for a user')      new SlashCommandBuilder().setName('history').setDescription('Fetch all moderation history for a user')
230          .addUserOption(option => option.setName('user').setDescription("The user").setRequired(true)),          .addUserOption(option => option.setName('user').setDescription("The user").setRequired(true)),
231    
232      new SlashCommandBuilder().setName('clear').setDescription('Clear all messages in the current channel for a user')      new SlashCommandBuilder().setName('clear').setDescription('Clear messages in bulk')
233          .addUserOption(option => option.setName('member').setDescription("The member").setRequired(true)),          .addUserOption(option => option.setName('user').setDescription("The user"))
234            .addIntegerOption(option => option.setName('count').setDescription("The amount of messages to delete").setMaxValue(400).setMinValue(0))
235            .addChannelOption(option => option.setName('channel').setDescription("The channel where the messages will be deleted")),
236    
237      new SlashCommandBuilder().setName('echo').setDescription('Re-send a message from the bot system')      new SlashCommandBuilder().setName('echo').setDescription('Re-send a message from the bot system')
238          .addStringOption(option => option.setName('content').setDescription("The message content").setRequired(true))          .addStringOption(option => option.setName('content').setDescription("The message content").setRequired(true))

Legend:
Removed from v.71  
changed lines
  Added in v.79

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26