|
3 | 3 | import { makeURLSearchParams, type RawFile, type REST, type RequestData } from '@discordjs/rest'; |
4 | 4 | import { |
5 | 5 | Routes, |
6 | | - type GuildMFALevel, |
7 | 6 | type GuildWidgetStyle, |
8 | 7 | type RESTGetAPIAuditLogQuery, |
9 | 8 | type RESTGetAPIAuditLogResult, |
@@ -89,7 +88,6 @@ import { |
89 | 88 | type RESTPostAPIGuildStickerResult, |
90 | 89 | type RESTPostAPIGuildTemplatesJSONBody, |
91 | 90 | type RESTPostAPIGuildTemplatesResult, |
92 | | - type RESTPostAPIGuildsMFAResult, |
93 | 91 | type RESTPutAPIGuildBanJSONBody, |
94 | 92 | type RESTPutAPIGuildMemberJSONBody, |
95 | 93 | type RESTPutAPIGuildMemberResult, |
@@ -167,17 +165,6 @@ export class GuildsAPI { |
167 | 165 | }) as Promise<RESTPatchAPIGuildResult>; |
168 | 166 | } |
169 | 167 |
|
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 | | - |
181 | 168 | /** |
182 | 169 | * Adds user to the guild |
183 | 170 | * |
@@ -481,27 +468,6 @@ export class GuildsAPI { |
481 | 468 | await this.rest.delete(Routes.guildRole(guildId, roleId), { auth, reason, signal }); |
482 | 469 | } |
483 | 470 |
|
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 | | - |
505 | 471 | /** |
506 | 472 | * Fetch the number of members that can be pruned from a guild |
507 | 473 | * |
|
0 commit comments