We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a257905 commit 0cbedd2Copy full SHA for 0cbedd2
packages/discord.js/src/structures/ApplicationCommand.js
@@ -418,7 +418,8 @@ class ApplicationCommand extends Base {
418
command.descriptionLocalizations ?? command.description_localizations ?? {},
419
this.descriptionLocalizations ?? {},
420
) ||
421
- !isEqual(command.integrationTypes ?? command.integration_types ?? [0], this.integrationTypes ?? []) ||
+ // [0] is the default value sent by Discord
422
+ !isEqual(command.integrationTypes ?? command.integration_types ?? [0], this.integrationTypes ?? [0]) ||
423
!isEqual(command.contexts ?? [], this.contexts ?? [])
424
) {
425
return false;
0 commit comments