Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions packages/core/src/api/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -89,7 +88,6 @@ import {
type RESTPostAPIGuildStickerResult,
type RESTPostAPIGuildTemplatesJSONBody,
type RESTPostAPIGuildTemplatesResult,
type RESTPostAPIGuildsMFAResult,
type RESTPutAPIGuildBanJSONBody,
type RESTPutAPIGuildMemberJSONBody,
type RESTPutAPIGuildMemberResult,
Expand Down Expand Up @@ -167,17 +165,6 @@ export class GuildsAPI {
}) as Promise<RESTPatchAPIGuildResult>;
}

/**
* 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<RequestData, 'auth' | 'signal'> = {}) {
await this.rest.delete(Routes.guild(guildId), { auth, signal });
}

/**
* Adds user to the guild
*
Expand Down Expand Up @@ -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<RequestData, 'auth' | 'reason' | 'signal'> = {},
) {
return this.rest.post(Routes.guildMFA(guildId), {
auth,
reason,
signal,
body: { level },
}) as Promise<RESTPostAPIGuildsMFAResult>;
}

/**
* Fetch the number of members that can be pruned from a guild
*
Expand Down