@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/index.d.mts CHANGED
@@ -1194,11 +1194,11 @@ declare class GuildsAPI {
1194
1194
  * Creates a new template
1195
1195
  *
1196
1196
  * @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-template}
1197
- * @param templateCode - The code of the template
1197
+ * @param guildId - The id of the guild
1198
1198
  * @param body - The data for creating the template
1199
1199
  * @param options - The options for creating the template
1200
1200
  */
1201
- createTemplate(templateCode: string, body: RESTPostAPIGuildTemplatesJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APITemplate>;
1201
+ createTemplate(guildId: Snowflake, body: RESTPostAPIGuildTemplatesJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APITemplate>;
1202
1202
  /**
1203
1203
  * Fetches webhooks for a guild
1204
1204
  *
package/dist/index.d.ts CHANGED
@@ -1194,11 +1194,11 @@ declare class GuildsAPI {
1194
1194
  * Creates a new template
1195
1195
  *
1196
1196
  * @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-template}
1197
- * @param templateCode - The code of the template
1197
+ * @param guildId - The id of the guild
1198
1198
  * @param body - The data for creating the template
1199
1199
  * @param options - The options for creating the template
1200
1200
  */
1201
- createTemplate(templateCode: string, body: RESTPostAPIGuildTemplatesJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APITemplate>;
1201
+ createTemplate(guildId: Snowflake, body: RESTPostAPIGuildTemplatesJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APITemplate>;
1202
1202
  /**
1203
1203
  * Fetches webhooks for a guild
1204
1204
  *
package/dist/index.js CHANGED
@@ -1833,12 +1833,12 @@ var GuildsAPI = class {
1833
1833
  * Creates a new template
1834
1834
  *
1835
1835
  * @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-template}
1836
- * @param templateCode - The code of the template
1836
+ * @param guildId - The id of the guild
1837
1837
  * @param body - The data for creating the template
1838
1838
  * @param options - The options for creating the template
1839
1839
  */
1840
- async createTemplate(templateCode, body, { auth, signal } = {}) {
1841
- return this.rest.post(import_v104.Routes.template(templateCode), {
1840
+ async createTemplate(guildId, body, { auth, signal } = {}) {
1841
+ return this.rest.post(import_v104.Routes.guildTemplates(guildId), {
1842
1842
  auth,
1843
1843
  body,
1844
1844
  signal
@@ -3343,7 +3343,7 @@ __name(withFiles, "withFiles");
3343
3343
 
3344
3344
  // src/index.ts
3345
3345
  __reExport(index_exports, require("discord-api-types/v10"), module.exports);
3346
- var version = "3.0.0-dev.1753876892-c3dc58169";
3346
+ var version = "3.0.0-dev.1754352103-a2ee3932b";
3347
3347
  // Annotate the CommonJS export names for ESM import in node:
3348
3348
  0 && (module.exports = {
3349
3349
  API,