Skip to content

Commit

Permalink
refactor: requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx authored Sep 1, 2024
1 parent 9d61a22 commit b2e0d7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/discord.js/src/structures/ClientApplication.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ClientApplication extends Application {
}

/**
* OAuth2 installation paremeters.
* OAuth2 installation parameters.
* @typedef {Object} IntegrationTypesConfigurationParameters
* @property {OAuth2Scopes[]} scopes Scopes that will be set upon adding this application
* @property {Readonly<PermissionsBitField>} permissions Permissions that will be requested for the integrated role
Expand Down Expand Up @@ -100,7 +100,7 @@ class ClientApplication extends Application {
this.integrationTypesConfig = Object.fromEntries(
Object.entries(data.integration_types_config).map(([key, config]) => {
let oauth2InstallParams = null;
if ('oauth2_install_params' in config) {
if (config.oauth2_install_params) {
oauth2InstallParams = {
scopes: config.oauth2_install_params.scopes,
permissions: new PermissionsBitField(config.oauth2_install_params.permissions).freeze(),
Expand Down

0 comments on commit b2e0d7d

Please sign in to comment.