Skip to content

Commit 1111d3c

Browse files
committed
fix: deprecate creating a guild from a template
1 parent b1f2977 commit 1111d3c

File tree

9 files changed

+18
-12
lines changed

9 files changed

+18
-12
lines changed

deno/payloads/v9/template.ts

Lines changed: 6 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deno/rest/v10/mod.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deno/rest/v10/template.ts

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deno/rest/v9/mod.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deno/rest/v9/template.ts

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rest/v10/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ export const Routes = {
464464
/**
465465
* Route for:
466466
* - GET `/guilds/templates/{template.code}`
467-
* - POST `/guilds/templates/{template.code}`
467+
* - POST `/guilds/templates/{template.code}` (**deprecated**)
468468
*/
469469
template(code: string) {
470470
return `/guilds/templates/${code}` as const;

rest/v10/template.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export type RESTGetAPITemplateResult = APITemplate;
88

99
/**
1010
* @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-from-guild-template}
11+
* @deprecated
1112
*/
1213
export interface RESTPostAPITemplateCreateGuildJSONBody {
1314
/**
@@ -24,6 +25,7 @@ export interface RESTPostAPITemplateCreateGuildJSONBody {
2425

2526
/**
2627
* @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-from-guild-template}
28+
* @deprecated
2729
*/
2830
export type RESTPostAPITemplateCreateGuildResult = APIGuild;
2931

rest/v9/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ export const Routes = {
464464
/**
465465
* Route for:
466466
* - GET `/guilds/templates/{template.code}`
467-
* - POST `/guilds/templates/{template.code}`
467+
* - POST `/guilds/templates/{template.code}` (**deprecated**)
468468
*/
469469
template(code: string) {
470470
return `/guilds/templates/${code}` as const;

rest/v9/template.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export type RESTGetAPITemplateResult = APITemplate;
88

99
/**
1010
* @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-from-guild-template}
11+
* @deprecated
1112
*/
1213
export interface RESTPostAPITemplateCreateGuildJSONBody {
1314
/**
@@ -29,6 +30,7 @@ export type RESTPostAPITemplateCreateGuildResult = APIGuild;
2930

3031
/**
3132
* @see {@link https://discord.com/developers/docs/resources/guild-template#get-guild-templates}
33+
* @deprecated
3234
*/
3335
export type RESTGetAPIGuildTemplatesResult = APITemplate[];
3436

0 commit comments

Comments
 (0)