Skip to content

Commit

Permalink
types(FetchSubscriptionOptions): add missing cache option
Browse files Browse the repository at this point in the history
  • Loading branch information
sdanialraza committed Nov 15, 2024
1 parent a27cd9c commit ba472bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/discord.js/src/managers/SubscriptionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class SubscriptionManager extends CachedManager {
/**
* Options used to fetch a subscription
* @typedef {BaseFetchOptions} FetchSubscriptionOptions
* @property {boolean} [cache=true] Whether to cache the fetched subscriptions
* @property {SKUResolvable} sku The SKU to fetch the subscription for
* @property {Snowflake} subscriptionId The id of the subscription to fetch
*/
Expand Down
1 change: 1 addition & 0 deletions packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4113,6 +4113,7 @@ export class EntitlementManager extends CachedManager<Snowflake, Entitlement, En
}

export interface FetchSubscriptionOptions extends BaseFetchOptions {
cache?: boolean;
sku: SKUResolvable;
subscriptionId: Snowflake;
}
Expand Down

0 comments on commit ba472bd

Please sign in to comment.