|
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, |
@@ -87,9 +86,6 @@ import { |
87 | 86 | type RESTPostAPIGuildScheduledEventResult, |
88 | 87 | type RESTPostAPIGuildStickerFormDataBody, |
89 | 88 | type RESTPostAPIGuildStickerResult, |
90 | | - type RESTPostAPIGuildTemplatesJSONBody, |
91 | | - type RESTPostAPIGuildTemplatesResult, |
92 | | - type RESTPostAPIGuildsMFAResult, |
93 | 89 | type RESTPutAPIGuildBanJSONBody, |
94 | 90 | type RESTPutAPIGuildMemberJSONBody, |
95 | 91 | type RESTPutAPIGuildMemberResult, |
@@ -167,17 +163,6 @@ export class GuildsAPI { |
167 | 163 | }) as Promise<RESTPatchAPIGuildResult>; |
168 | 164 | } |
169 | 165 |
|
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 | 166 | /** |
182 | 167 | * Adds user to the guild |
183 | 168 | * |
@@ -481,27 +466,6 @@ export class GuildsAPI { |
481 | 466 | await this.rest.delete(Routes.guildRole(guildId, roleId), { auth, reason, signal }); |
482 | 467 | } |
483 | 468 |
|
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 | 469 | /** |
506 | 470 | * Fetch the number of members that can be pruned from a guild |
507 | 471 | * |
@@ -1318,26 +1282,6 @@ export class GuildsAPI { |
1318 | 1282 | return this.rest.get(Routes.template(templateCode), { auth, signal }) as Promise<RESTGetAPITemplateResult>; |
1319 | 1283 | } |
1320 | 1284 |
|
1321 | | - /** |
1322 | | - * Creates a new template |
1323 | | - * |
1324 | | - * @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-template} |
1325 | | - * @param templateCode - The code of the template |
1326 | | - * @param body - The data for creating the template |
1327 | | - * @param options - The options for creating the template |
1328 | | - */ |
1329 | | - public async createTemplate( |
1330 | | - templateCode: string, |
1331 | | - body: RESTPostAPIGuildTemplatesJSONBody, |
1332 | | - { auth, signal }: Pick<RequestData, 'auth' | 'signal'> = {}, |
1333 | | - ) { |
1334 | | - return this.rest.post(Routes.template(templateCode), { |
1335 | | - auth, |
1336 | | - body, |
1337 | | - signal, |
1338 | | - }) as Promise<RESTPostAPIGuildTemplatesResult>; |
1339 | | - } |
1340 | | - |
1341 | 1285 | /** |
1342 | 1286 | * Fetches webhooks for a guild |
1343 | 1287 | * |
|
0 commit comments