Skip to content

Commit b1f2977

Browse files
committed
fix: deprecate creating guilds
1 parent b4285c1 commit b1f2977

File tree

9 files changed

+24
-6
lines changed

9 files changed

+24
-6
lines changed

deno/payloads/v9/template.ts

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

deno/rest/v10/guild.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/v10/mod.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/guild.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: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rest/v10/guild.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export type APIGuildCreateRole = RESTAPIGuildCreateRole;
9898

9999
/**
100100
* @see {@link https://discord.com/developers/docs/resources/guild#create-guild}
101+
* @deprecated {@link https://discord.com/developers/docs/change-log#deprecating-guild-creation-by-apps}
101102
*/
102103
export interface RESTPostAPIGuildsJSONBody {
103104
/**
@@ -186,6 +187,7 @@ export interface RESTPostAPIGuildsJSONBody {
186187

187188
/**
188189
* @see {@link https://discord.com/developers/docs/resources/guild#create-guild}
190+
* @deprecated {@link https://discord.com/developers/docs/change-log#deprecating-guild-creation-by-apps}
189191
*/
190192
export type RESTPostAPIGuildsResult = APIGuild;
191193

rest/v10/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ export const Routes = {
250250
/**
251251
* Route for:
252252
* - POST `/guilds`
253+
*
254+
* @deprecated {@link https://discord.com/developers/docs/change-log#deprecating-guild-creation-by-apps}
253255
*/
254256
guilds() {
255257
return '/guilds' as const;

rest/v9/guild.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export type APIGuildCreateRole = RESTAPIGuildCreateRole;
9898

9999
/**
100100
* @see {@link https://discord.com/developers/docs/resources/guild#create-guild}
101+
* @deprecated {@link https://discord.com/developers/docs/change-log#deprecating-guild-creation-by-apps}
101102
*/
102103
export interface RESTPostAPIGuildsJSONBody {
103104
/**
@@ -186,6 +187,7 @@ export interface RESTPostAPIGuildsJSONBody {
186187

187188
/**
188189
* @see {@link https://discord.com/developers/docs/resources/guild#create-guild}
190+
* @deprecated {@link https://discord.com/developers/docs/change-log#deprecating-guild-creation-by-apps}
189191
*/
190192
export type RESTPostAPIGuildsResult = APIGuild;
191193

rest/v9/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ export const Routes = {
250250
/**
251251
* Route for:
252252
* - POST `/guilds`
253+
*
254+
* @deprecated {@link https://discord.com/developers/docs/change-log#deprecating-guild-creation-by-apps}
253255
*/
254256
guilds() {
255257
return '/guilds' as const;

0 commit comments

Comments
 (0)