Skip to content

Commit

Permalink
fix(InteractionResponses): check correct property for deprecation
Browse files Browse the repository at this point in the history
Resolves #10676.
  • Loading branch information
Jiralite committed Jan 2, 2025
1 parent 8fea3ed commit 77804cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.`,
Expand Down

0 comments on commit 77804cf

Please sign in to comment.