mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
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:
@@ -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,
|
||||
|
||||
@@ -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__.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user