Skip to content

Commit 3c74aa2

Browse files
authored
fix(ApplicationCommand): incorrect comparison in equals method (#10497)
1 parent 799fa54 commit 3c74aa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/discord.js/src/structures/ApplicationCommand.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ class ApplicationCommand extends Base {
418418
command.descriptionLocalizations ?? command.description_localizations ?? {},
419419
this.descriptionLocalizations ?? {},
420420
) ||
421-
!isEqual(command.integrationTypes ?? command.integration_types ?? [], this.integrationTypes ?? {}) ||
421+
!isEqual(command.integrationTypes ?? command.integration_types ?? [], this.integrationTypes ?? []) ||
422422
!isEqual(command.contexts ?? [], this.contexts ?? [])
423423
) {
424424
return false;

0 commit comments

Comments
 (0)