diff --git a/index.js b/index.js index 4d36fc6..c200ad0 100644 --- a/index.js +++ b/index.js @@ -154,9 +154,6 @@ client.on('interactionCreate', async (interaction) => { `(${interaction.guild.memberCount}) ${interaction.guild.name}> Command '${interaction}' took ${executionTime} ms to execute.` ); - // todo: using interaction.editReply() might lead to "unknown interaction" error - // it might already have been replied to or deferred - // solution might be to use interaction.followUp() instead or send a message to the channel? return await interaction.followUp({ embeds: [ new EmbedBuilder() @@ -179,9 +176,6 @@ client.on('interactionCreate', async (interaction) => { `(${interaction.guild.memberCount}) ${interaction.guild.name}> Command '${interaction}' failed to execute.` ); - // todo: using interaction.editReply() might lead to "unknown interaction" error - // it might already have been replied to or deferred - // solution might be to use interaction.followUp() instead or send a message to the channel? await interaction.followUp({ embeds: [ new EmbedBuilder()