From 77804cfd559691d9b8c85aec8c494cd6c14c4ea7 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Thu, 2 Jan 2025 00:07:51 +0000 Subject: [PATCH] fix(InteractionResponses): check correct property for deprecation Resolves #10676. --- .../src/structures/interfaces/InteractionResponses.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/discord.js/src/structures/interfaces/InteractionResponses.js b/packages/discord.js/src/structures/interfaces/InteractionResponses.js index e383c65dd..e5b25fbb1 100644 --- a/packages/discord.js/src/structures/interfaces/InteractionResponses.js +++ b/packages/discord.js/src/structures/interfaces/InteractionResponses.js @@ -163,7 +163,7 @@ class InteractionResponses { if (this.deferred || this.replied) throw new DiscordjsError(ErrorCodes.InteractionAlreadyReplied); if (typeof options !== 'string') { - if ('fetchReply' in options) { + if ('ephemeral' in options) { if (!deprecationEmittedForEphemeralOption) { process.emitWarning( `Supplying "ephemeral" for interaction response options is deprecated. Utilize flags instead.`,