Update send_interaction_response.ts

This commit is contained in:
TriForMine
2021-10-30 15:37:43 +02:00
committed by GitHub
parent 971443cdf4
commit 12ea44e838
@@ -32,7 +32,7 @@ export async function sendInteractionResponse(
options.data = { ...options.data, allowedMentions: { parse: [] } };
}
const allowedMentions: AllowedMentions = options.data?.allowedMentions;
const allowedMentions: AllowedMentions = options.data?.allowedMentions || { parse: [] };
// If its already been executed, we need to send a followup response
if (bot.cache.executedSlashCommands.has(token)) {