/[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 77 by rakin, Mon Jul 29 17:28:29 2024 UTC revision 78 by rakin, Mon Jul 29 17:28:30 2024 UTC
# Line 230  let commands = [ Line 230  let commands = [
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 all messages in the current channel for a user')
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.77  
changed lines
  Added in v.78

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26