Skip to content

Commit a2ee393

Browse files
authored
fix(guild): Creating a template actually creates a template (#11030)
feat(guild): add creating a template
1 parent 8f5ac55 commit a2ee393

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/core/src/api/guild.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)