Skip to content

Commit

Permalink
fix(ApplicationCommand): incorrect comparison in equals method (disco…
Browse files Browse the repository at this point in the history
  • Loading branch information
monbrey authored and nyapat committed Oct 4, 2024
1 parent 9a65cd1 commit f47bdd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/structures/ApplicationCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ class ApplicationCommand extends Base {
command.descriptionLocalizations ?? command.description_localizations ?? {},
this.descriptionLocalizations ?? {},
) ||
!isEqual(command.integrationTypes ?? command.integration_types ?? [], this.integrationTypes ?? {}) ||
!isEqual(command.integrationTypes ?? command.integration_types ?? [], this.integrationTypes ?? []) ||
!isEqual(command.contexts ?? [], this.contexts ?? [])
) {
return false;
Expand Down

0 comments on commit f47bdd9

Please sign in to comment.