From d063655e56b1db09bad32180803be4f77eba9040 Mon Sep 17 00:00:00 2001 From: Fleny Date: Wed, 23 Apr 2025 16:02:39 +0200 Subject: [PATCH] Deprecate createGuild and createGuildFromTemplate (#4169) While discord does not say anything explicit about deprecating the createGuildFromTemplate endpoint, it is a fair assumption to make that it is included in this change Co-authored-by: Awesome Stickz --- packages/bot/src/helpers.ts | 2 ++ packages/rest/src/types.ts | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/packages/bot/src/helpers.ts b/packages/bot/src/helpers.ts index e1a828424..a1171dd88 100644 --- a/packages/bot/src/helpers.ts +++ b/packages/bot/src/helpers.ts @@ -837,12 +837,14 @@ export type BotHelpers Promise> createGlobalApplicationCommand: (command: CreateApplicationCommand, options?: CreateGlobalApplicationCommandOptions) => Promise + /** @deprecated */ createGuild: (options: CreateGuild) => Promise> createGuildApplicationCommand: ( command: CreateApplicationCommand, guildId: BigString, options?: CreateGuildApplicationCommandOptions, ) => Promise + /** @deprecated */ createGuildFromTemplate: (templateCode: string, options: CreateGuildFromTemplate) => Promise> createGuildSticker: ( guildId: BigString, diff --git a/packages/rest/src/types.ts b/packages/rest/src/types.ts index 4266727dc..83b773b5c 100644 --- a/packages/rest/src/types.ts +++ b/packages/rest/src/types.ts @@ -474,6 +474,11 @@ export interface RestManager { * @param options - The parameters for the creation of the guild. * @returns An instance of the created {@link DiscordGuild}. * + * @deprecated + * This endpoint is deprecated by Discord and will be disabled on July 15 2025. + * + * Check Discord announcement for details: {@link https://discord.com/developers/docs/change-log#deprecating-guild-creation-by-apps} + * * @remarks * ⚠️ This route can only be used by bots in __fewer than 10 guilds__. * @@ -511,6 +516,12 @@ export interface RestManager { * @param options - The parameters for the creation of the guild. * @returns An instance of the created {@link DiscordGuild}. * + * @deprecated + * This endpoint is deprecated by Discord and will be disabled on July 15 2025. + * + * Check Discord announcement for details: {@link https://discord.com/developers/docs/change-log#deprecating-guild-creation-by-apps} + * + * * @remarks * ⚠️ This route can only be used by bots in __fewer than 10 guilds__. *