Skip to content

Commit 698b92c

Browse files
authored
fix(guild)!: Remove API related to guild ownership (#11029)
* fix(guild): deprecate guild owner API * style: prettier
1 parent a2ee393 commit 698b92c

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

packages/core/src/api/guild.ts

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import { makeURLSearchParams, type RawFile, type REST, type RequestData } from '@discordjs/rest';
44
import {
55
Routes,
6-
type GuildMFALevel,
76
type GuildWidgetStyle,
87
type RESTGetAPIAuditLogQuery,
98
type RESTGetAPIAuditLogResult,
@@ -89,7 +88,6 @@ import {
8988
type RESTPostAPIGuildStickerResult,
9089
type RESTPostAPIGuildTemplatesJSONBody,
9190
type RESTPostAPIGuildTemplatesResult,
92-
type RESTPostAPIGuildsMFAResult,
9391
type RESTPutAPIGuildBanJSONBody,
9492
type RESTPutAPIGuildMemberJSONBody,
9593
type RESTPutAPIGuildMemberResult,
@@ -167,17 +165,6 @@ export class GuildsAPI {
167165
}) as Promise<RESTPatchAPIGuildResult>;
168166
}
169167

170-
/**
171-
* Deletes a guild
172-
*
173-
* @see {@link https://discord.com/developers/docs/resources/guild#delete-guild}
174-
* @param guildId - The id of the guild to delete
175-
* @param options - The options for deleting this guild
176-
*/
177-
public async delete(guildId: Snowflake, { auth, signal }: Pick<RequestData, 'auth' | 'signal'> = {}) {
178-
await this.rest.delete(Routes.guild(guildId), { auth, signal });
179-
}
180-
181168
/**
182169
* Adds user to the guild
183170
*
@@ -481,27 +468,6 @@ export class GuildsAPI {
481468
await this.rest.delete(Routes.guildRole(guildId, roleId), { auth, reason, signal });
482469
}
483470

484-
/**
485-
* Edits the multi-factor-authentication (MFA) level of a guild
486-
*
487-
* @see {@link https://discord.com/developers/docs/resources/guild#modify-guild-mfa-level}
488-
* @param guildId - The id of the guild to edit the MFA level for
489-
* @param level - The new MFA level
490-
* @param options - The options for editing the MFA level
491-
*/
492-
public async editMFALevel(
493-
guildId: Snowflake,
494-
level: GuildMFALevel,
495-
{ auth, reason, signal }: Pick<RequestData, 'auth' | 'reason' | 'signal'> = {},
496-
) {
497-
return this.rest.post(Routes.guildMFA(guildId), {
498-
auth,
499-
reason,
500-
signal,
501-
body: { level },
502-
}) as Promise<RESTPostAPIGuildsMFAResult>;
503-
}
504-
505471
/**
506472
* Fetch the number of members that can be pruned from a guild
507473
*

0 commit comments

Comments
 (0)