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

@@ -17,9 +17,6 @@ export const handleCommand = async (
executionId: executionId
});
await interaction.deferReply();
logger.debug('Interaction deferred.');
await checkChannelPermissionViewable({ interaction, executionId });
const slashCommand: BaseSlashCommandInteraction = client.slashCommandInteractions!.get(
@@ -17,9 +17,6 @@ export const handleComponent = async (
executionId: executionId
});
await interaction.deferReply();
logger.debug('Interaction deferred.');
const componentId: string = interactionIdentifier.split('_')[0];
const referenceId: string = interactionIdentifier.split('_')[1];