Skip to content

Commit

Permalink
GitHubCommand: Use .followUp() instead of .reply() after delete
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gmta committed Dec 18, 2024
1 parent 6e3af34 commit e8e50a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/commands/githubCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand All @@ -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;
}
}
Expand All @@ -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;
}
}
Expand Down Expand Up @@ -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 });
}
}

0 comments on commit e8e50a6

Please sign in to comment.