mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
fix(InteractionResponses): check correct property for deprecation
Resolves #10676.
This commit is contained in:
@@ -163,7 +163,7 @@ class InteractionResponses {
|
|||||||
if (this.deferred || this.replied) throw new DiscordjsError(ErrorCodes.InteractionAlreadyReplied);
|
if (this.deferred || this.replied) throw new DiscordjsError(ErrorCodes.InteractionAlreadyReplied);
|
||||||
|
|
||||||
if (typeof options !== 'string') {
|
if (typeof options !== 'string') {
|
||||||
if ('fetchReply' in options) {
|
if ('ephemeral' in options) {
|
||||||
if (!deprecationEmittedForEphemeralOption) {
|
if (!deprecationEmittedForEphemeralOption) {
|
||||||
process.emitWarning(
|
process.emitWarning(
|
||||||
`Supplying "ephemeral" for interaction response options is deprecated. Utilize flags instead.`,
|
`Supplying "ephemeral" for interaction response options is deprecated. Utilize flags instead.`,
|
||||||
|
|||||||
Reference in New Issue
Block a user