Skip to content

Slash command feature for maintaining anonymous and log channels #3

@NidheeshaT

Description

@NidheeshaT
  • 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');
    }
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions