@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.
@@ -691,15 +691,14 @@ var GuildsAPI = class {
691
691
  static {
692
692
  __name(this, "GuildsAPI");
693
693
  }
694
- /**
695
- * Fetches a guild
696
- *
697
- * @see {@link https://discord.com/developers/docs/resources/guild#get-guild}
698
- * @param guildId - The id of the guild
699
- * @param options - The options for fetching the guild
700
- */
701
- async get(guildId, { signal } = {}) {
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.1708215003-992aa6784";
2628
+ var version = "1.2.0-dev.1708560541-8c2ababa7";
2631
2629
  export {
2632
2630
  API,
2633
2631
  ApplicationCommandsAPI,