@discordjs/core 3.0.0-dev.1753876892-c3dc58169 → 3.0.0-dev.1754352103-a2ee3932b
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 +2 -2
- package/dist/http-only.d.ts +2 -2
- 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 +2 -2
- package/dist/index.d.ts +2 -2
- 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 +4 -4
package/dist/http-only.d.mts
CHANGED
|
@@ -1191,11 +1191,11 @@ declare class GuildsAPI {
|
|
|
1191
1191
|
* Creates a new template
|
|
1192
1192
|
*
|
|
1193
1193
|
* @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-template}
|
|
1194
|
-
* @param
|
|
1194
|
+
* @param guildId - The id of the guild
|
|
1195
1195
|
* @param body - The data for creating the template
|
|
1196
1196
|
* @param options - The options for creating the template
|
|
1197
1197
|
*/
|
|
1198
|
-
createTemplate(
|
|
1198
|
+
createTemplate(guildId: Snowflake, body: RESTPostAPIGuildTemplatesJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APITemplate>;
|
|
1199
1199
|
/**
|
|
1200
1200
|
* Fetches webhooks for a guild
|
|
1201
1201
|
*
|
package/dist/http-only.d.ts
CHANGED
|
@@ -1191,11 +1191,11 @@ declare class GuildsAPI {
|
|
|
1191
1191
|
* Creates a new template
|
|
1192
1192
|
*
|
|
1193
1193
|
* @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-template}
|
|
1194
|
-
* @param
|
|
1194
|
+
* @param guildId - The id of the guild
|
|
1195
1195
|
* @param body - The data for creating the template
|
|
1196
1196
|
* @param options - The options for creating the template
|
|
1197
1197
|
*/
|
|
1198
|
-
createTemplate(
|
|
1198
|
+
createTemplate(guildId: Snowflake, body: RESTPostAPIGuildTemplatesJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APITemplate>;
|
|
1199
1199
|
/**
|
|
1200
1200
|
* Fetches webhooks for a guild
|
|
1201
1201
|
*
|
package/dist/http-only.js
CHANGED
|
@@ -1832,12 +1832,12 @@ var GuildsAPI = class {
|
|
|
1832
1832
|
* Creates a new template
|
|
1833
1833
|
*
|
|
1834
1834
|
* @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-template}
|
|
1835
|
-
* @param
|
|
1835
|
+
* @param guildId - The id of the guild
|
|
1836
1836
|
* @param body - The data for creating the template
|
|
1837
1837
|
* @param options - The options for creating the template
|
|
1838
1838
|
*/
|
|
1839
|
-
async createTemplate(
|
|
1840
|
-
return this.rest.post(import_v104.Routes.
|
|
1839
|
+
async createTemplate(guildId, body, { auth, signal } = {}) {
|
|
1840
|
+
return this.rest.post(import_v104.Routes.guildTemplates(guildId), {
|
|
1841
1841
|
auth,
|
|
1842
1842
|
body,
|
|
1843
1843
|
signal
|
|
@@ -3118,7 +3118,7 @@ __name(withFiles, "withFiles");
|
|
|
3118
3118
|
|
|
3119
3119
|
// src/http-only/index.ts
|
|
3120
3120
|
__reExport(http_only_exports, require("discord-api-types/v10"), module.exports);
|
|
3121
|
-
var version = "3.0.0-dev.
|
|
3121
|
+
var version = "3.0.0-dev.1754352103-a2ee3932b";
|
|
3122
3122
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3123
3123
|
0 && (module.exports = {
|
|
3124
3124
|
API,
|