@discordjs/core 3.0.0-dev.1733400321-abf4b6103 → 3.0.0-dev.1733443981-00dceb32b

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.mjs CHANGED
@@ -887,14 +887,19 @@ var GuildsAPI = class {
887
887
  static {
888
888
  __name(this, "GuildsAPI");
889
889
  }
890
- async get(guildId, queryOrOptions = {}, options = {}) {
891
- const requestData = {
892
- signal: ("signal" in queryOrOptions ? queryOrOptions : options).signal
893
- };
894
- if ("with_counts" in queryOrOptions) {
895
- requestData.query = makeURLSearchParams3(queryOrOptions);
896
- }
897
- return this.rest.get(Routes5.guild(guildId), requestData);
890
+ /**
891
+ * Fetches a guild
892
+ *
893
+ * @see {@link https://discord.com/developers/docs/resources/guild#get-guild}
894
+ * @param guildId - The id of the guild
895
+ * @param query - The query options for fetching the guild
896
+ * @param options - The options for fetching the guild
897
+ */
898
+ async get(guildId, query = {}, { signal } = {}) {
899
+ return this.rest.get(Routes5.guild(guildId), {
900
+ query: makeURLSearchParams3(query),
901
+ signal
902
+ });
898
903
  }
899
904
  /**
900
905
  * Fetches a guild preview
@@ -2159,6 +2164,19 @@ var MonetizationAPI = class {
2159
2164
  query: makeURLSearchParams6(query)
2160
2165
  });
2161
2166
  }
2167
+ /**
2168
+ * Fetches an entitlement for an application.
2169
+ *
2170
+ * @see {@link https://discord.com/developers/docs/resources/entitlement#get-entitlement}
2171
+ * @param applicationId - The application id to fetch the entitlement for
2172
+ * @param entitlementId - The entitlement id to fetch
2173
+ * @param options - The options for fetching the entitlement
2174
+ */
2175
+ async getEntitlement(applicationId, entitlementId, { signal } = {}) {
2176
+ return this.rest.get(Routes8.entitlement(applicationId, entitlementId), {
2177
+ signal
2178
+ });
2179
+ }
2162
2180
  /**
2163
2181
  * Creates a test entitlement for an application's SKU.
2164
2182
  *
@@ -3135,7 +3153,7 @@ __name(withFiles, "withFiles");
3135
3153
 
3136
3154
  // src/index.ts
3137
3155
  export * from "discord-api-types/v10";
3138
- var version = "3.0.0-dev.1733400321-abf4b6103";
3156
+ var version = "3.0.0-dev.1733443981-00dceb32b";
3139
3157
  export {
3140
3158
  API,
3141
3159
  ApplicationCommandsAPI,