Repository: discordjs/discord.js
File: packages/core/src/api/monetization.ts (TypeScript)

Code before:
	 */
	public async getSKUs(applicationId: Snowflake, { signal }: Pick<RequestData, 'signal'> = {}) {
		return this.rest.get(Routes.skus(applicationId), { signal }) as Promise<RESTGetAPISKUsResult>;
	}

	/**
	 * Fetches the subscriptions for a SKU.
	 *
	 * @see {@link https://discord.com/developers/docs/resources/subscription#list-sku-subscriptions}
	 * @param skuId - The SKU id to fetch subscriptions for
	 * @param query - The query options for fetching subscriptions
	 * @param options - The options for fetching subscriptions
	 */
	public async getSKUSubscriptions(
		skuId: Snowflake,
		query: RESTGetAPISKUSubscriptionsQuery,
		{ signal }: Pick<RequestData, 'signal'> = {},
	) {
		return this.rest.get(Routes.skuSubscriptions(skuId), {
			signal,
			query: makeURLSearchParams(query),
		}) as Promise<RESTGetAPISKUSubscriptionsResult>;
	}

	/**
	 * Fetches the subscription for a SKU.
	 *
	 * @see {@link https://discord.com/developers/docs/resources/subscription#get-sku-subscription}
	 * @param skuId - The SKU id to fetch subscription for
	 * @param options - The options for fetching the subscription
	 */
	public async getSKUSubscription(
		skuId: Snowflake,
		subscriptionId: Snowflake,
		{ signal }: Pick<RequestData, 'signal'> = {},
	) {
		return this.rest.get(Routes.skuSubscription(skuId, subscriptionId), {
			signal,
		}) as Promise<RESTGetAPISKUSubscriptionResult>;
	}

	/**
	 * Fetches the entitlements for an application.
	 *
	 * @see {@link https://discord.com/developers/docs/resources/entitlement#list-entitlements}
	 * @param applicationId - The application id to fetch entitlements for
	 * @param query - The query options for fetching entitlements
	 * @param options - The options for fetching entitlements
	 */
	public async getEntitlements(
		applicationId: Snowflake,

Review comment (suggestion):
```suggestion
	 * Fetches the subscription for an SKU.
```

Code after:
	 * @param options - The options for fetching the SKUs.
	 */
	public async getSKUs(applicationId: Snowflake, { signal }: Pick<RequestData, 'signal'> = {}) {
		return this.rest.get(Routes.skus(applicationId), { signal }) as Promise<RESTGetAPISKUsResult>;
	}

	/**
	 * Fetches subscriptions for an SKU.
	 *
	 * @see {@link https://discord.com/developers/docs/resources/subscription#list-sku-subscriptions}
	 * @param skuId - The SKU id to fetch subscriptions for
	 * @param query - The query options for fetching subscriptions
	 * @param options - The options for fetching subscriptions
	 */
	public async getSKUSubscriptions(
		skuId: Snowflake,
		query: RESTGetAPISKUSubscriptionsQuery,
		{ signal }: Pick<RequestData, 'signal'> = {},
	) {
		return this.rest.get(Routes.skuSubscriptions(skuId), {
			signal,
			query: makeURLSearchParams(query),
		}) as Promise<RESTGetAPISKUSubscriptionsResult>;
	}

	/**
	 * Fetches a subscription for an SKU.
	 *
	 * @see {@link https://discord.com/developers/docs/resources/subscription#get-sku-subscription}
	 * @param skuId - The SKU id to fetch subscription for
	 * @param subscriptionId - The subscription id to fetch
	 * @param options - The options for fetching the subscription
	 */
	public async getSKUSubscription(
		skuId: Snowflake,
		subscriptionId: Snowflake,
		{ signal }: Pick<RequestData, 'signal'> = {},
	) {
		return this.rest.get(Routes.skuSubscription(skuId, subscriptionId), {
			signal,
		}) as Promise<RESTGetAPISKUSubscriptionResult>;
	}

	/**
	 * Fetches the entitlements for an application.
	 *
	 * @see {@link https://discord.com/developers/docs/resources/entitlement#list-entitlements}
	 * @param applicationId - The application id to fetch entitlements for
	 * @param query - The query options for fetching entitlements
	 * @param options - The options for fetching entitlements
	 */