From dc3118de153ac261192958783f4ba71da6253170 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Sat, 15 Jul 2023 03:08:49 +0200 Subject: [PATCH] Removed comments --- index.js | 6 ------ 1 file changed, 6 deletions(-) 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()