@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.
@@ -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 templateCode - The code of the template
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(templateCode: string, body: RESTPostAPIGuildTemplatesJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APITemplate>;
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
  *
@@ -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 templateCode - The code of the template
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(templateCode: string, body: RESTPostAPIGuildTemplatesJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APITemplate>;
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 templateCode - The code of the template
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(templateCode, body, { auth, signal } = {}) {
1840
- return this.rest.post(import_v104.Routes.template(templateCode), {
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.1753876892-c3dc58169";
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,