fix(InteractionResponses): check correct property for deprecation

Resolves #10676.
This commit is contained in:
Jiralite
2025-01-02 00:07:51 +00:00
parent 8fea3ed978
commit 77804cfd55

View File

@@ -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.`,