Added ephemeral responses for the pasword generator
This commit is contained in:
@ -3,8 +3,13 @@ const client = require("../index");
|
||||
client.on("interactionCreate", async (interaction) => {
|
||||
// Slash Command Handling
|
||||
if (interaction.isChatInputCommand()) {
|
||||
await interaction.deferReply({ ephemeral: false }).catch(() => { });
|
||||
console.log(interaction )
|
||||
if (interaction.commandName == "password-generator") {
|
||||
await interaction.deferReply({ ephemeral: true }).catch(() => { });
|
||||
} else {
|
||||
await interaction.deferReply({ ephemeral: false }).catch(() => { });
|
||||
|
||||
}
|
||||
const cmd = client.slashCommands.get(interaction.commandName);
|
||||
if (!cmd)
|
||||
return interaction.followUp({ content: "An error has occurred " });
|
||||
|
Reference in New Issue
Block a user