33import { makeURLSearchParams , type RawFile , type REST , type RequestData } from '@discordjs/rest' ;
44import {
55 Routes ,
6- type GuildMFALevel ,
76 type GuildWidgetStyle ,
87 type RESTGetAPIAuditLogQuery ,
98 type RESTGetAPIAuditLogResult ,
@@ -87,9 +86,6 @@ import {
8786 type RESTPostAPIGuildScheduledEventResult ,
8887 type RESTPostAPIGuildStickerFormDataBody ,
8988 type RESTPostAPIGuildStickerResult ,
90- type RESTPostAPIGuildTemplatesJSONBody ,
91- type RESTPostAPIGuildTemplatesResult ,
92- type RESTPostAPIGuildsMFAResult ,
9389 type RESTPutAPIGuildBanJSONBody ,
9490 type RESTPutAPIGuildMemberJSONBody ,
9591 type RESTPutAPIGuildMemberResult ,
@@ -103,6 +99,8 @@ import {
10399 type RESTPostAPIGuildSoundboardSoundJSONBody ,
104100 type RESTPostAPIGuildSoundboardSoundResult ,
105101 type Snowflake ,
102+ RESTPostAPIGuildTemplatesJSONBody ,
103+ RESTPostAPIGuildTemplatesResult ,
106104} from 'discord-api-types/v10' ;
107105
108106export interface CreateStickerOptions extends Omit < RESTPostAPIGuildStickerFormDataBody , 'file' > {
@@ -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