File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
packages/discord.js/src/structures Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
const { DiscordSnowflake } = require ( '@sapphire/snowflake' ) ;
4
- const { ApplicationCommandOptionType } = require ( 'discord-api-types/v10' ) ;
4
+ const { ApplicationCommandOptionType, ApplicationIntegrationType } = require ( 'discord-api-types/v10' ) ;
5
5
const isEqual = require ( 'fast-deep-equal' ) ;
6
6
const Base = require ( './Base' ) ;
7
7
const ApplicationCommandPermissionsManager = require ( '../managers/ApplicationCommandPermissionsManager' ) ;
@@ -419,7 +419,13 @@ class ApplicationCommand extends Base {
419
419
this . descriptionLocalizations ?? { } ,
420
420
) ||
421
421
// [0] is the default value sent by Discord
422
- ! isEqual ( command . integrationTypes ?? command . integration_types ?? [ 0 ] , this . integrationTypes ?? [ 0 ] ) ||
422
+ ! isEqual (
423
+ command . integrationTypes ??
424
+ command . integration_types ??
425
+ this . client . application . integrationTypesConfig ?. keys ( ) ?? [ ApplicationIntegrationType . GuildInstall ] ,
426
+ this . integrationTypes ??
427
+ this . client . application . integrationTypesConfig ?. keys ( ) ?? [ ApplicationIntegrationType . GuildInstall ] ,
428
+ ) ||
423
429
! isEqual ( command . contexts ?? [ ] , this . contexts ?? [ ] )
424
430
) {
425
431
return false ;
You can’t perform that action at this time.
0 commit comments