From d10233489caa4ccfb0f7cb1356afbb1d27e6a12f Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Wed, 18 Dec 2024 11:15:59 +0100 Subject: [PATCH] GitHubCommand: Use `.followUp()` instead of `.reply()` after delete The SDK doesn't like it when you try to initiate two replies to the same interaction. Let's see if it works if we send a follow-up message. --- src/commands/githubCommand.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/githubCommand.ts b/src/commands/githubCommand.ts index 1cb2421..ac0db55 100644 --- a/src/commands/githubCommand.ts +++ b/src/commands/githubCommand.ts @@ -151,7 +151,7 @@ export class GithubCommand extends Command { if (result) { await interaction.deleteReply(); - await interaction.reply({ embeds: [result] }); + await interaction.followUp({ embeds: [result] }); return; } } @@ -165,7 +165,7 @@ export class GithubCommand extends Command { if (result) { await interaction.deleteReply(); - await interaction.reply({ embeds: [result] }); + await interaction.followUp({ embeds: [result] }); return; } } @@ -177,7 +177,7 @@ export class GithubCommand extends Command { if (result) { await interaction.deleteReply(); - await interaction.reply({ embeds: [result] }); + await interaction.followUp({ embeds: [result] }); return; } } @@ -263,6 +263,6 @@ export class ReviewListCommand extends Command { const descriptionList = descriptions.map(({ description }) => description).join("\n"); await interaction.deleteReply(); - await interaction.reply({ content: descriptionList }); + await interaction.followUp({ content: descriptionList }); } }