Skip to content

Commit 00e432a

Browse files
committed
fix: use Object.keys()
1 parent b0bce56 commit 00e432a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,13 @@ class ApplicationCommand extends Base {
422422
!isEqual(
423423
command.integrationTypes ??
424424
command.integration_types ??
425-
this.client.application.integrationTypesConfig?.keys() ?? [ApplicationIntegrationType.GuildInstall],
425+
(this.client.application.integrationTypesConfig
426+
? Object.keys(this.client.application.integrationTypesConfig)
427+
: [ApplicationIntegrationType.GuildInstall]),
426428
this.integrationTypes ??
427-
this.client.application.integrationTypesConfig?.keys() ?? [ApplicationIntegrationType.GuildInstall],
429+
(this.client.application.integrationTypesConfig
430+
? Object.keys(this.client.application.integrationTypesConfig)
431+
: [ApplicationIntegrationType.GuildInstall]),
428432
) ||
429433
!isEqual(command.contexts ?? [], this.contexts ?? [])
430434
) {

0 commit comments

Comments
 (0)