mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 08:50:07 +00:00
13 lines
438 B
TypeScript
13 lines
438 B
TypeScript
import type { Bot } from "../../mod.ts";
|
|
import type { BigString, MfaLevels } from "../../types/shared.ts";
|
|
|
|
/** Modify a guild's MFA level. Requires guild ownership. */
|
|
export async function editGuildMfaLevel(bot: Bot, guildId: BigString, mfaLevel: MfaLevels, reason?: string) {
|
|
return await bot.rest.runMethod<void>(
|
|
bot.rest,
|
|
"POST",
|
|
bot.constants.routes.GUILD_MFA_LEVEL(guildId),
|
|
{ level: mfaLevel, reason },
|
|
);
|
|
}
|