Move deferring into the specific interactions where required. Makes especially validation warnings ephemeral.

This commit is contained in:
Marius Begby committed 2024-01-30 19:21:42 +01:00
1 parent a7aefd085f
commit f3329fceee
36 files changed
+164 -175

No files matched your search

+3
View File
@@ -38,6 +38,9 @@ class LyricsCommand extends BaseSlashCommandInteraction {
]);
}
await interaction.deferReply();
logger.debug('Interaction deferred.');
const geniusSearchQuery: string = this.getGeniusSearchQuery(logger, query, queue);
const [playerSearchResult, geniusLyricsResult] = await Promise.all([
this.getPlayerSearchResult(logger, query),