Advertisement
EnTGeA

Untitled

Feb 25th, 2025
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Current:
  2. export default {
  3.   data: new SlashCommandBuilder()
  4.     .setName('breakout')
  5.     .setDescription('Split members from a main room into breakout rooms')
  6.     .setDefaultMemberPermissions(PermissionFlagsBits.MoveMembers)
  7.     .addChannelOption(option =>
  8.       option.setName('mainroom')
  9.         .setDescription('The main voice channel where members are currently located')
  10.         .setRequired(true)
  11.         .addChannelTypes(ChannelType.GuildVoice, ChannelType.GuildStageVoice))
  12.     .addChannelOption(option =>
  13.       option.setName('breakout-room-1')
  14.         .setDescription('First breakout room')
  15.         .setRequired(true)
  16.         .addChannelTypes(ChannelType.GuildVoice, ChannelType.GuildStageVoice))
  17.     .addChannelOption(option =>
  18.       option.setName('breakout-room-2')
  19.         .setDescription('Second breakout room')
  20.         .setRequired(false)
  21.         .addChannelTypes(ChannelType.GuildVoice, ChannelType.GuildStageVoice))
  22.     .addChannelOption(option =>
  23.       option.setName('breakout-room-3')
  24.         .setDescription('Third breakout room')
  25.         .setRequired(false)
  26.         .addChannelTypes(ChannelType.GuildVoice, ChannelType.GuildStageVoice))
  27.     .addChannelOption(option =>
  28.       option.setName('breakout-room-4')
  29.         .setDescription('Fourth breakout room')
  30.         .setRequired(false)
  31.         .addChannelTypes(ChannelType.GuildVoice, ChannelType.GuildStageVoice))
  32.     .addChannelOption(option =>
  33.       option.setName('breakout-room-5')
  34.         .setDescription('Fifth breakout room')
  35.         .setRequired(false)
  36.         .addChannelTypes(ChannelType.GuildVoice, ChannelType.GuildStageVoice)),
  37.  
  38. // desired structure:
  39. export default {
  40.   data: new SlashCommandBuilder()
  41.     .setName('breakout')
  42.     .setDescription('Split members from a main room into breakout rooms')
  43.     .setDefaultMemberPermissions(PermissionFlagsBits.MoveMembers)
  44.     .addChannelOption(option =>
  45.       option.setName('mainroom')
  46.         .setDescription('The main voice channel where members are currently located')
  47.         .setRequired(true)
  48.         .addChannelTypes(ChannelType.GuildVoice, ChannelType.GuildStageVoice))
  49.     .addChannelOption(option =>
  50.       option.setName('breakout-rooms')
  51.         .setDescription('The breakout voice channels to move members to')
  52.         .setRequired(true)
  53.         .addChannelTypes(ChannelType.GuildVoice, ChannelType.GuildStageVoice)),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement