Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Current:
- export default {
- data: new SlashCommandBuilder()
- .setName('breakout')
- .setDescription('Split members from a main room into breakout rooms')
- .setDefaultMemberPermissions(PermissionFlagsBits.MoveMembers)
- .addChannelOption(option =>
- option.setName('mainroom')
- .setDescription('The main voice channel where members are currently located')
- .setRequired(true)
- .addChannelTypes(ChannelType.GuildVoice, ChannelType.GuildStageVoice))
- .addChannelOption(option =>
- option.setName('breakout-room-1')
- .setDescription('First breakout room')
- .setRequired(true)
- .addChannelTypes(ChannelType.GuildVoice, ChannelType.GuildStageVoice))
- .addChannelOption(option =>
- option.setName('breakout-room-2')
- .setDescription('Second breakout room')
- .setRequired(false)
- .addChannelTypes(ChannelType.GuildVoice, ChannelType.GuildStageVoice))
- .addChannelOption(option =>
- option.setName('breakout-room-3')
- .setDescription('Third breakout room')
- .setRequired(false)
- .addChannelTypes(ChannelType.GuildVoice, ChannelType.GuildStageVoice))
- .addChannelOption(option =>
- option.setName('breakout-room-4')
- .setDescription('Fourth breakout room')
- .setRequired(false)
- .addChannelTypes(ChannelType.GuildVoice, ChannelType.GuildStageVoice))
- .addChannelOption(option =>
- option.setName('breakout-room-5')
- .setDescription('Fifth breakout room')
- .setRequired(false)
- .addChannelTypes(ChannelType.GuildVoice, ChannelType.GuildStageVoice)),
- // desired structure:
- export default {
- data: new SlashCommandBuilder()
- .setName('breakout')
- .setDescription('Split members from a main room into breakout rooms')
- .setDefaultMemberPermissions(PermissionFlagsBits.MoveMembers)
- .addChannelOption(option =>
- option.setName('mainroom')
- .setDescription('The main voice channel where members are currently located')
- .setRequired(true)
- .addChannelTypes(ChannelType.GuildVoice, ChannelType.GuildStageVoice))
- .addChannelOption(option =>
- option.setName('breakout-rooms')
- .setDescription('The breakout voice channels to move members to')
- .setRequired(true)
- .addChannelTypes(ChannelType.GuildVoice, ChannelType.GuildStageVoice)),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement