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 @@ -1322,16 +1322,16 @@ export class GuildsAPI {
13221322 * Creates a new template
13231323 *
13241324 * @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-template }
1325- * @param templateCode - The code of the template
1325+ * @param guildId - The id of the guild
13261326 * @param body - The data for creating the template
13271327 * @param options - The options for creating the template
13281328 */
13291329 public async createTemplate (
1330- templateCode : string ,
1330+ guildId : Snowflake ,
13311331 body : RESTPostAPIGuildTemplatesJSONBody ,
13321332 { auth, signal } : Pick < RequestData , 'auth' | 'signal' > = { } ,
13331333 ) {
1334- return this . rest . post ( Routes . template ( templateCode ) , {
1334+ return this . rest . post ( Routes . guildTemplates ( guildId ) , {
13351335 auth,
13361336 body,
13371337 signal,
You can’t perform that action at this time.
0 commit comments