Skip to content

Commit e8e50a6

Browse files
committed
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.
1 parent 6e3af34 commit e8e50a6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/commands/githubCommand.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export class GithubCommand extends Command {
151151

152152
if (result) {
153153
await interaction.deleteReply();
154-
await interaction.reply({ embeds: [result] });
154+
await interaction.followUp({ embeds: [result] });
155155
return;
156156
}
157157
}
@@ -165,7 +165,7 @@ export class GithubCommand extends Command {
165165

166166
if (result) {
167167
await interaction.deleteReply();
168-
await interaction.reply({ embeds: [result] });
168+
await interaction.followUp({ embeds: [result] });
169169
return;
170170
}
171171
}
@@ -177,7 +177,7 @@ export class GithubCommand extends Command {
177177

178178
if (result) {
179179
await interaction.deleteReply();
180-
await interaction.reply({ embeds: [result] });
180+
await interaction.followUp({ embeds: [result] });
181181
return;
182182
}
183183
}
@@ -263,6 +263,6 @@ export class ReviewListCommand extends Command {
263263
const descriptionList = descriptions.map(({ description }) => description).join("\n");
264264

265265
await interaction.deleteReply();
266-
await interaction.reply({ content: descriptionList });
266+
await interaction.followUp({ content: descriptionList });
267267
}
268268
}

0 commit comments

Comments
 (0)