@discordjs/core 1.2.0-dev.1708215003-992aa6784 → 1.2.0-dev.1708560541-8c2ababa7
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 +12 -2
- package/dist/http-only.d.ts +12 -2
- package/dist/http-only.js +10 -12
- package/dist/http-only.js.map +1 -1
- package/dist/http-only.mjs +9 -11
- package/dist/http-only.mjs.map +1 -1
- package/dist/index.d.mts +12 -2
- package/dist/index.d.ts +12 -2
- package/dist/index.js +10 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/http-only.mjs
CHANGED
|
@@ -691,15 +691,14 @@ var GuildsAPI = class {
|
|
|
691
691
|
static {
|
|
692
692
|
__name(this, "GuildsAPI");
|
|
693
693
|
}
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
return this.rest.get(Routes4.guild(guildId), { signal });
|
|
694
|
+
async get(guildId, queryOrOptions = {}, options = {}) {
|
|
695
|
+
const requestData = {
|
|
696
|
+
signal: ("signal" in queryOrOptions ? queryOrOptions : options).signal
|
|
697
|
+
};
|
|
698
|
+
if ("with_counts" in queryOrOptions) {
|
|
699
|
+
requestData.query = makeURLSearchParams3(queryOrOptions);
|
|
700
|
+
}
|
|
701
|
+
return this.rest.get(Routes4.guild(guildId), requestData);
|
|
703
702
|
}
|
|
704
703
|
/**
|
|
705
704
|
* Fetches a guild preview
|
|
@@ -1912,7 +1911,6 @@ var MonetizationAPI = class {
|
|
|
1912
1911
|
};
|
|
1913
1912
|
|
|
1914
1913
|
// src/api/oauth2.ts
|
|
1915
|
-
import { URL } from "node:url";
|
|
1916
1914
|
import { makeURLSearchParams as makeURLSearchParams6 } from "@discordjs/rest";
|
|
1917
1915
|
import {
|
|
1918
1916
|
Routes as Routes8,
|
|
@@ -2627,7 +2625,7 @@ __name(withFiles, "withFiles");
|
|
|
2627
2625
|
|
|
2628
2626
|
// src/http-only/index.ts
|
|
2629
2627
|
export * from "discord-api-types/v10";
|
|
2630
|
-
var version = "1.2.0-dev.
|
|
2628
|
+
var version = "1.2.0-dev.1708560541-8c2ababa7";
|
|
2631
2629
|
export {
|
|
2632
2630
|
API,
|
|
2633
2631
|
ApplicationCommandsAPI,
|