Skip to content

Commit 0cbedd2

Browse files
authored
fix: also change default value in this
1 parent a257905 commit 0cbedd2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,8 @@ class ApplicationCommand extends Base {
418418
command.descriptionLocalizations ?? command.description_localizations ?? {},
419419
this.descriptionLocalizations ?? {},
420420
) ||
421-
!isEqual(command.integrationTypes ?? command.integration_types ?? [0], this.integrationTypes ?? []) ||
421+
// [0] is the default value sent by Discord
422+
!isEqual(command.integrationTypes ?? command.integration_types ?? [0], this.integrationTypes ?? [0]) ||
422423
!isEqual(command.contexts ?? [], this.contexts ?? [])
423424
) {
424425
return false;

0 commit comments

Comments
 (0)