@discordjs/core 3.0.0-dev.1732752781-e89c6b66a → 3.0.0-dev.1732839160-5b125eeec

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1679,7 +1679,7 @@ declare class MonetizationAPI {
1679
1679
  * @param query - The query options for fetching subscriptions
1680
1680
  * @param options - The options for fetching subscriptions
1681
1681
  */
1682
- getSKUSubscriptions(skuId: Snowflake, query: RESTGetAPISKUSubscriptionsQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPISKUSubscriptionsResult>;
1682
+ getSKUSubscriptions(skuId: Snowflake, query?: RESTGetAPISKUSubscriptionsQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPISKUSubscriptionsResult>;
1683
1683
  /**
1684
1684
  * Fetches a subscription for an SKU.
1685
1685
  *
@@ -1697,7 +1697,7 @@ declare class MonetizationAPI {
1697
1697
  * @param query - The query options for fetching entitlements
1698
1698
  * @param options - The options for fetching entitlements
1699
1699
  */
1700
- getEntitlements(applicationId: Snowflake, query: RESTGetAPIEntitlementsQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIEntitlementsResult>;
1700
+ getEntitlements(applicationId: Snowflake, query?: RESTGetAPIEntitlementsQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIEntitlementsResult>;
1701
1701
  /**
1702
1702
  * Creates a test entitlement for an application's SKU.
1703
1703
  *
@@ -1802,7 +1802,7 @@ declare class PollAPI {
1802
1802
  * @param query - The query for getting the list of voters
1803
1803
  * @param options - The options for getting the list of voters
1804
1804
  */
1805
- getAnswerVoters(channelId: Snowflake, messageId: Snowflake, answerId: number, query: RESTGetAPIPollAnswerVotersQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIPollAnswerVotersResult>;
1805
+ getAnswerVoters(channelId: Snowflake, messageId: Snowflake, answerId: number, query?: RESTGetAPIPollAnswerVotersQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIPollAnswerVotersResult>;
1806
1806
  /**
1807
1807
  * Immediately expires (i.e. ends) a poll
1808
1808
  *
package/dist/index.d.ts CHANGED
@@ -1679,7 +1679,7 @@ declare class MonetizationAPI {
1679
1679
  * @param query - The query options for fetching subscriptions
1680
1680
  * @param options - The options for fetching subscriptions
1681
1681
  */
1682
- getSKUSubscriptions(skuId: Snowflake, query: RESTGetAPISKUSubscriptionsQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPISKUSubscriptionsResult>;
1682
+ getSKUSubscriptions(skuId: Snowflake, query?: RESTGetAPISKUSubscriptionsQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPISKUSubscriptionsResult>;
1683
1683
  /**
1684
1684
  * Fetches a subscription for an SKU.
1685
1685
  *
@@ -1697,7 +1697,7 @@ declare class MonetizationAPI {
1697
1697
  * @param query - The query options for fetching entitlements
1698
1698
  * @param options - The options for fetching entitlements
1699
1699
  */
1700
- getEntitlements(applicationId: Snowflake, query: RESTGetAPIEntitlementsQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIEntitlementsResult>;
1700
+ getEntitlements(applicationId: Snowflake, query?: RESTGetAPIEntitlementsQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIEntitlementsResult>;
1701
1701
  /**
1702
1702
  * Creates a test entitlement for an application's SKU.
1703
1703
  *
@@ -1802,7 +1802,7 @@ declare class PollAPI {
1802
1802
  * @param query - The query for getting the list of voters
1803
1803
  * @param options - The options for getting the list of voters
1804
1804
  */
1805
- getAnswerVoters(channelId: Snowflake, messageId: Snowflake, answerId: number, query: RESTGetAPIPollAnswerVotersQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIPollAnswerVotersResult>;
1805
+ getAnswerVoters(channelId: Snowflake, messageId: Snowflake, answerId: number, query?: RESTGetAPIPollAnswerVotersQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIPollAnswerVotersResult>;
1806
1806
  /**
1807
1807
  * Immediately expires (i.e. ends) a poll
1808
1808
  *
package/dist/index.js CHANGED
@@ -2170,7 +2170,7 @@ var MonetizationAPI = class {
2170
2170
  * @param query - The query options for fetching subscriptions
2171
2171
  * @param options - The options for fetching subscriptions
2172
2172
  */
2173
- async getSKUSubscriptions(skuId, query, { signal } = {}) {
2173
+ async getSKUSubscriptions(skuId, query = {}, { signal } = {}) {
2174
2174
  return this.rest.get(import_v108.Routes.skuSubscriptions(skuId), {
2175
2175
  signal,
2176
2176
  query: (0, import_rest6.makeURLSearchParams)(query)
@@ -2197,7 +2197,7 @@ var MonetizationAPI = class {
2197
2197
  * @param query - The query options for fetching entitlements
2198
2198
  * @param options - The options for fetching entitlements
2199
2199
  */
2200
- async getEntitlements(applicationId, query, { signal } = {}) {
2200
+ async getEntitlements(applicationId, query = {}, { signal } = {}) {
2201
2201
  return this.rest.get(import_v108.Routes.entitlements(applicationId), {
2202
2202
  signal,
2203
2203
  query: (0, import_rest6.makeURLSearchParams)(query)
@@ -2383,7 +2383,7 @@ var PollAPI = class {
2383
2383
  * @param query - The query for getting the list of voters
2384
2384
  * @param options - The options for getting the list of voters
2385
2385
  */
2386
- async getAnswerVoters(channelId, messageId, answerId, query, { signal } = {}) {
2386
+ async getAnswerVoters(channelId, messageId, answerId, query = {}, { signal } = {}) {
2387
2387
  return this.rest.get(import_v1010.Routes.pollAnswerVoters(channelId, messageId, answerId), {
2388
2388
  signal,
2389
2389
  query: (0, import_rest8.makeURLSearchParams)(query)
@@ -3168,7 +3168,7 @@ __name(withFiles, "withFiles");
3168
3168
 
3169
3169
  // src/index.ts
3170
3170
  __reExport(src_exports, require("discord-api-types/v10"), module.exports);
3171
- var version = "3.0.0-dev.1732752781-e89c6b66a";
3171
+ var version = "3.0.0-dev.1732839160-5b125eeec";
3172
3172
  // Annotate the CommonJS export names for ESM import in node:
3173
3173
  0 && (module.exports = {
3174
3174
  API,