mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
api-docs!: Remove createGuild and createGuildFromTemplate (#4268)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user