@discordjs/core 3.0.0-dev.1733400321-abf4b6103 → 3.0.0-dev.1733703214-af4018c25
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 +11 -11
- package/dist/http-only.d.ts +11 -11
- package/dist/http-only.js +27 -9
- package/dist/http-only.js.map +1 -1
- package/dist/http-only.mjs +27 -9
- package/dist/http-only.mjs.map +1 -1
- package/dist/index.d.mts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +27 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/http-only.mjs
CHANGED
|
@@ -887,14 +887,19 @@ var GuildsAPI = class {
|
|
|
887
887
|
static {
|
|
888
888
|
__name(this, "GuildsAPI");
|
|
889
889
|
}
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
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
|
*
|
|
@@ -2986,7 +3004,7 @@ __name(withFiles, "withFiles");
|
|
|
2986
3004
|
|
|
2987
3005
|
// src/http-only/index.ts
|
|
2988
3006
|
export * from "discord-api-types/v10";
|
|
2989
|
-
var version = "3.0.0-dev.
|
|
3007
|
+
var version = "3.0.0-dev.1733703214-af4018c25";
|
|
2990
3008
|
export {
|
|
2991
3009
|
API,
|
|
2992
3010
|
ApplicationCommandsAPI,
|