Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slash command feature for maintaining anonymous and log channels #3

Open
NidheeshaT opened this issue Sep 30, 2023 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@NidheeshaT
Copy link
Collaborator

NidheeshaT commented Sep 30, 2023

  • 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');
    }
});
@NidheeshaT NidheeshaT added the enhancement New feature or request label Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant