@discordjs/core 2.1.0-dev.1732709132-97ffa201a → 3.0.0-dev.1732795512-2b0944a92
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/http-only.d.mts +3 -3
- package/dist/http-only.d.ts +3 -3
- package/dist/http-only.js +4 -4
- package/dist/http-only.js.map +1 -1
- package/dist/http-only.mjs +4 -4
- package/dist/http-only.mjs.map +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/http-only.d.mts
CHANGED
|
@@ -1676,7 +1676,7 @@ declare class MonetizationAPI {
|
|
|
1676
1676
|
* @param query - The query options for fetching subscriptions
|
|
1677
1677
|
* @param options - The options for fetching subscriptions
|
|
1678
1678
|
*/
|
|
1679
|
-
getSKUSubscriptions(skuId: Snowflake, query
|
|
1679
|
+
getSKUSubscriptions(skuId: Snowflake, query?: RESTGetAPISKUSubscriptionsQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPISKUSubscriptionsResult>;
|
|
1680
1680
|
/**
|
|
1681
1681
|
* Fetches a subscription for an SKU.
|
|
1682
1682
|
*
|
|
@@ -1694,7 +1694,7 @@ declare class MonetizationAPI {
|
|
|
1694
1694
|
* @param query - The query options for fetching entitlements
|
|
1695
1695
|
* @param options - The options for fetching entitlements
|
|
1696
1696
|
*/
|
|
1697
|
-
getEntitlements(applicationId: Snowflake, query
|
|
1697
|
+
getEntitlements(applicationId: Snowflake, query?: RESTGetAPIEntitlementsQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIEntitlementsResult>;
|
|
1698
1698
|
/**
|
|
1699
1699
|
* Creates a test entitlement for an application's SKU.
|
|
1700
1700
|
*
|
|
@@ -1799,7 +1799,7 @@ declare class PollAPI {
|
|
|
1799
1799
|
* @param query - The query for getting the list of voters
|
|
1800
1800
|
* @param options - The options for getting the list of voters
|
|
1801
1801
|
*/
|
|
1802
|
-
getAnswerVoters(channelId: Snowflake, messageId: Snowflake, answerId: number, query
|
|
1802
|
+
getAnswerVoters(channelId: Snowflake, messageId: Snowflake, answerId: number, query?: RESTGetAPIPollAnswerVotersQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIPollAnswerVotersResult>;
|
|
1803
1803
|
/**
|
|
1804
1804
|
* Immediately expires (i.e. ends) a poll
|
|
1805
1805
|
*
|
package/dist/http-only.d.ts
CHANGED
|
@@ -1676,7 +1676,7 @@ declare class MonetizationAPI {
|
|
|
1676
1676
|
* @param query - The query options for fetching subscriptions
|
|
1677
1677
|
* @param options - The options for fetching subscriptions
|
|
1678
1678
|
*/
|
|
1679
|
-
getSKUSubscriptions(skuId: Snowflake, query
|
|
1679
|
+
getSKUSubscriptions(skuId: Snowflake, query?: RESTGetAPISKUSubscriptionsQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPISKUSubscriptionsResult>;
|
|
1680
1680
|
/**
|
|
1681
1681
|
* Fetches a subscription for an SKU.
|
|
1682
1682
|
*
|
|
@@ -1694,7 +1694,7 @@ declare class MonetizationAPI {
|
|
|
1694
1694
|
* @param query - The query options for fetching entitlements
|
|
1695
1695
|
* @param options - The options for fetching entitlements
|
|
1696
1696
|
*/
|
|
1697
|
-
getEntitlements(applicationId: Snowflake, query
|
|
1697
|
+
getEntitlements(applicationId: Snowflake, query?: RESTGetAPIEntitlementsQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIEntitlementsResult>;
|
|
1698
1698
|
/**
|
|
1699
1699
|
* Creates a test entitlement for an application's SKU.
|
|
1700
1700
|
*
|
|
@@ -1799,7 +1799,7 @@ declare class PollAPI {
|
|
|
1799
1799
|
* @param query - The query for getting the list of voters
|
|
1800
1800
|
* @param options - The options for getting the list of voters
|
|
1801
1801
|
*/
|
|
1802
|
-
getAnswerVoters(channelId: Snowflake, messageId: Snowflake, answerId: number, query
|
|
1802
|
+
getAnswerVoters(channelId: Snowflake, messageId: Snowflake, answerId: number, query?: RESTGetAPIPollAnswerVotersQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIPollAnswerVotersResult>;
|
|
1803
1803
|
/**
|
|
1804
1804
|
* Immediately expires (i.e. ends) a poll
|
|
1805
1805
|
*
|
package/dist/http-only.js
CHANGED
|
@@ -2169,7 +2169,7 @@ var MonetizationAPI = class {
|
|
|
2169
2169
|
* @param query - The query options for fetching subscriptions
|
|
2170
2170
|
* @param options - The options for fetching subscriptions
|
|
2171
2171
|
*/
|
|
2172
|
-
async getSKUSubscriptions(skuId, query, { signal } = {}) {
|
|
2172
|
+
async getSKUSubscriptions(skuId, query = {}, { signal } = {}) {
|
|
2173
2173
|
return this.rest.get(import_v108.Routes.skuSubscriptions(skuId), {
|
|
2174
2174
|
signal,
|
|
2175
2175
|
query: (0, import_rest6.makeURLSearchParams)(query)
|
|
@@ -2196,7 +2196,7 @@ var MonetizationAPI = class {
|
|
|
2196
2196
|
* @param query - The query options for fetching entitlements
|
|
2197
2197
|
* @param options - The options for fetching entitlements
|
|
2198
2198
|
*/
|
|
2199
|
-
async getEntitlements(applicationId, query, { signal } = {}) {
|
|
2199
|
+
async getEntitlements(applicationId, query = {}, { signal } = {}) {
|
|
2200
2200
|
return this.rest.get(import_v108.Routes.entitlements(applicationId), {
|
|
2201
2201
|
signal,
|
|
2202
2202
|
query: (0, import_rest6.makeURLSearchParams)(query)
|
|
@@ -2382,7 +2382,7 @@ var PollAPI = class {
|
|
|
2382
2382
|
* @param query - The query for getting the list of voters
|
|
2383
2383
|
* @param options - The options for getting the list of voters
|
|
2384
2384
|
*/
|
|
2385
|
-
async getAnswerVoters(channelId, messageId, answerId, query, { signal } = {}) {
|
|
2385
|
+
async getAnswerVoters(channelId, messageId, answerId, query = {}, { signal } = {}) {
|
|
2386
2386
|
return this.rest.get(import_v1010.Routes.pollAnswerVoters(channelId, messageId, answerId), {
|
|
2387
2387
|
signal,
|
|
2388
2388
|
query: (0, import_rest8.makeURLSearchParams)(query)
|
|
@@ -3021,7 +3021,7 @@ __name(withFiles, "withFiles");
|
|
|
3021
3021
|
|
|
3022
3022
|
// src/http-only/index.ts
|
|
3023
3023
|
__reExport(http_only_exports, require("discord-api-types/v10"), module.exports);
|
|
3024
|
-
var version = "
|
|
3024
|
+
var version = "3.0.0-dev.1732795512-2b0944a92";
|
|
3025
3025
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3026
3026
|
0 && (module.exports = {
|
|
3027
3027
|
API,
|