File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1287,16 +1287,16 @@ export class GuildsAPI {
12871287 * Creates a new template
12881288 *
12891289 * @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-template }
1290- * @param templateCode - The code of the template
1290+ * @param guildId - The id of the guild
12911291 * @param body - The data for creating the template
12921292 * @param options - The options for creating the template
12931293 */
12941294 public async createTemplate (
1295- templateCode : string ,
1295+ guildId : Snowflake ,
12961296 body : RESTPostAPIGuildTemplatesJSONBody ,
12971297 { signal } : Pick < RequestData , 'signal' > = { } ,
12981298 ) {
1299- return this . rest . post ( Routes . template ( templateCode ) , { body, signal } ) as Promise < RESTPostAPIGuildTemplatesResult > ;
1299+ return this . rest . post ( Routes . guildTemplates ( guildId ) , { body, signal } ) as Promise < RESTPostAPIGuildTemplatesResult > ;
13001300 }
13011301
13021302 /**
You can’t perform that action at this time.
0 commit comments