- use of slash command in the server should give options to change anonymous channels, initially empty it bot must prompt it to change
- same case for the log channels only it is optional
- menus/buttons can be provided to select channels
- Example usage of slash command is
const command = new SlashCommandBuilder().setName("ping").setDescription("pong");
client.once(Events.ClientReady, () => {
console.log("Bot turned on");
client.application.commands.create(command);
});
client.on(Events.InteractionCreate, async (interaction) => {
if (!interaction.isCommand()) return;
if(interaction.commandName === 'ping') {
await interaction.reply('pong');
}
});