/[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 78 by rakin, Mon Jul 29 17:28:30 2024 UTC revision 81 by rakin, Mon Jul 29 17:28:31 2024 UTC
# Line 229  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('user').setDescription("The user"))          .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))          .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")),          .addChannelOption(option => option.setName('channel').setDescription("The channel where the messages will be deleted")),
# Line 278  let commands = [ Line 278  let commands = [
278      new SlashCommandBuilder().setName('send').setDescription('Send a DM to a user')      new SlashCommandBuilder().setName('send').setDescription('Send a DM to a user')
279          .addStringOption(option => option.setName('content').setDescription("The message content").setRequired(true))          .addStringOption(option => option.setName('content').setDescription("The message content").setRequired(true))
280          .addUserOption(option => option.setName('member').setDescription("The member").setRequired(true)),          .addUserOption(option => option.setName('member').setDescription("The member").setRequired(true)),
281    
282    
283        new SlashCommandBuilder().setName('appeal').setDescription('Send us a messages about a punishment appeal')
284  ].map(command => command.toJSON());  ].map(command => command.toJSON());
285    
286  if (process.argv.includes('--clear')) {  if (process.argv.includes('--clear')) {

Legend:
Removed from v.78  
changed lines
  Added in v.81

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26