Repository: discordjs/discord.js
File: packages/builders/src/interactions/slashCommands/mixins/SharedSlashCommand.ts (TypeScript)

Code before:

	public readonly dm_permission: boolean | undefined = undefined;

	public readonly integration_types?: ApplicationIntegrationType[];

	public readonly nsfw: boolean | undefined = undefined;

	/**
	 * Adds contexts to this slash command.
	 *
	 * @param contexts - The contexts
	 */
	public addContexts(...contexts: RestOrArray<InteractionContextType>) {
		if (this.contexts === undefined) {
			Reflect.set(this, 'contexts', []);
		}

		this.contexts!.push(...contextsPredicate.parse(normalizeArray(contexts)));

		return this;
	}

	/**
	 * Adds integration types to this slash command.
	 *
	 * @param contexts - The integration types
	 */
	public addIntegrationTypes(...integrationTypes: RestOrArray<ApplicationIntegrationType>) {
		if (this.integration_types === undefined) {
			Reflect.set(this, 'integration_types', []);
		}

		this.integration_types!.push(...integrationTypesPredicate.parse(normalizeArray(integrationTypes)));

		return this;
	}

	/**
	 * Sets whether the command is enabled by default when the application is added to a guild.
	 *
	 * @remarks
	 * If set to `false`, you will have to later `PUT` the permissions for this command.
	 * @param value - Whether or not to enable this command by default
	 * @see {@link https://discord.com/developers/docs/interactions/application-commands#permissions}
	 * @deprecated Use {@link SharedSlashCommand.setDefaultMemberPermissions} or {@link SharedSlashCommand.setDMPermission} instead.
	 */
	public setDefaultPermission(value: boolean) {
		// Assert the value matches the conditions
		validateDefaultPermission(value);

		Reflect.set(this, 'default_permission', value);

Review comment (suggestion):
```suggestion
	 * @param integrationTypes - The integration types
```

Code after:

	public readonly dm_permission: boolean | undefined = undefined;

	public readonly integration_types?: ApplicationIntegrationType[];

	public readonly nsfw: boolean | undefined = undefined;

	/**
	 * Sets the contexts of this command.
	 *
	 * @param contexts - The contexts
	 */
	public setContexts(...contexts: RestOrArray<InteractionContextType>) {
		Reflect.set(this, 'contexts', contextsPredicate.parse(normalizeArray(contexts)));

		return this;
	}

	/**
	 * Sets the integration types of this command.
	 *
	 * @param integrationTypes - The integration types
	 */
	public setIntegrationTypes(...integrationTypes: RestOrArray<ApplicationIntegrationType>) {
		Reflect.set(this, 'integration_types', integrationTypesPredicate.parse(normalizeArray(integrationTypes)));

		return this;
	}

	/**
	 * Sets whether the command is enabled by default when the application is added to a guild.
	 *
	 * @remarks
	 * If set to `false`, you will have to later `PUT` the permissions for this command.
	 * @param value - Whether or not to enable this command by default
	 * @see {@link https://discord.com/developers/docs/interactions/application-commands#permissions}
	 * @deprecated Use {@link SharedSlashCommand.setDefaultMemberPermissions} or {@link SharedSlashCommand.setDMPermission} instead.
	 */
	public setDefaultPermission(value: boolean) {
		// Assert the value matches the conditions
		validateDefaultPermission(value);

		Reflect.set(this, 'default_permission', value);

		return this;
	}

	/**
	 * Sets the default permissions a member should have in order to run the command.
	 *
	 * @remarks