diff --git a/packages/core/src/api/guild.ts b/packages/core/src/api/guild.ts index 3daf2ee54..6648c19ed 100644 --- a/packages/core/src/api/guild.ts +++ b/packages/core/src/api/guild.ts @@ -3,7 +3,6 @@ import { makeURLSearchParams, type RawFile, type REST, type RequestData } from '@discordjs/rest'; import { Routes, - type GuildMFALevel, type GuildWidgetStyle, type RESTGetAPIAuditLogQuery, type RESTGetAPIAuditLogResult, @@ -89,7 +88,6 @@ import { type RESTPostAPIGuildStickerResult, type RESTPostAPIGuildTemplatesJSONBody, type RESTPostAPIGuildTemplatesResult, - type RESTPostAPIGuildsMFAResult, type RESTPutAPIGuildBanJSONBody, type RESTPutAPIGuildMemberJSONBody, type RESTPutAPIGuildMemberResult, @@ -167,17 +165,6 @@ export class GuildsAPI { }) as Promise; } - /** - * Deletes a guild - * - * @see {@link https://discord.com/developers/docs/resources/guild#delete-guild} - * @param guildId - The id of the guild to delete - * @param options - The options for deleting this guild - */ - public async delete(guildId: Snowflake, { auth, signal }: Pick = {}) { - await this.rest.delete(Routes.guild(guildId), { auth, signal }); - } - /** * Adds user to the guild * @@ -481,27 +468,6 @@ export class GuildsAPI { await this.rest.delete(Routes.guildRole(guildId, roleId), { auth, reason, signal }); } - /** - * Edits the multi-factor-authentication (MFA) level of a guild - * - * @see {@link https://discord.com/developers/docs/resources/guild#modify-guild-mfa-level} - * @param guildId - The id of the guild to edit the MFA level for - * @param level - The new MFA level - * @param options - The options for editing the MFA level - */ - public async editMFALevel( - guildId: Snowflake, - level: GuildMFALevel, - { auth, reason, signal }: Pick = {}, - ) { - return this.rest.post(Routes.guildMFA(guildId), { - auth, - reason, - signal, - body: { level }, - }) as Promise; - } - /** * Fetch the number of members that can be pruned from a guild *