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 <awesome@stickz.dev>
This commit is contained in:
Fleny
2025-04-23 19:32:39 +05:30
committed by GitHub
co-authored by Awesome Stickz
parent f7a25e2063
commit d063655e56
2 changed files with 13 additions and 0 deletions
+2
View File
@@ -837,12 +837,14 @@ export type BotHelpers<TProps extends TransformersDesiredProperties, TBehavior e
reason?: string,
) => Promise<SetupDesiredProps<Channel, TProps, TBehavior>>
createGlobalApplicationCommand: (command: CreateApplicationCommand, options?: CreateGlobalApplicationCommandOptions) => Promise<ApplicationCommand>
/** @deprecated */
createGuild: (options: CreateGuild) => Promise<SetupDesiredProps<Guild, TProps, TBehavior>>
createGuildApplicationCommand: (
command: CreateApplicationCommand,
guildId: BigString,
options?: CreateGuildApplicationCommandOptions,
) => Promise<ApplicationCommand>
/** @deprecated */
createGuildFromTemplate: (templateCode: string, options: CreateGuildFromTemplate) => Promise<SetupDesiredProps<Guild, TProps, TBehavior>>
createGuildSticker: (
guildId: BigString,
+11
View File
@@ -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__.
*