api-docs!: Remove createGuild and createGuildFromTemplate (#4268)

This commit is contained in:
Fleny
2025-07-30 17:45:01 +02:00
committed by GitHub
parent b6bfaa38a8
commit 979f1a248c
4 changed files with 2 additions and 103 deletions
-12
View File
@@ -15,13 +15,11 @@ import type {
CreateEntitlement,
CreateForumPostWithMessage,
CreateGlobalApplicationCommandOptions,
CreateGuild,
CreateGuildApplicationCommandOptions,
CreateGuildBan,
CreateGuildBulkBan,
CreateGuildChannel,
CreateGuildEmoji,
CreateGuildFromTemplate,
CreateGuildRole,
CreateGuildSoundboardSound,
CreateGuildStickerOptions,
@@ -171,15 +169,9 @@ export function createBotHelpers<TProps extends TransformersDesiredProperties, T
createGlobalApplicationCommand: async (command, options) => {
return bot.transformers.applicationCommand(bot, snakelize(await bot.rest.createGlobalApplicationCommand(command, options)))
},
createGuild: async (options) => {
return bot.transformers.guild(bot, { guild: snakelize(await bot.rest.createGuild(options)), shardId: 0 })
},
createGuildApplicationCommand: async (command, guildId, options) => {
return bot.transformers.applicationCommand(bot, snakelize(await bot.rest.createGuildApplicationCommand(command, guildId, options)))
},
createGuildFromTemplate: async (templateCode, options) => {
return bot.transformers.guild(bot, { guild: snakelize(await bot.rest.createGuildFromTemplate(templateCode, options)), shardId: 0 })
},
createGuildSticker: async (guildId, options, reason) => {
return bot.transformers.sticker(bot, snakelize(await bot.rest.createGuildSticker(guildId, options, reason)))
},
@@ -877,15 +869,11 @@ 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,
options: CreateGuildStickerOptions,