Files
discordeno/helpers/guilds/editGuildMfaLevel.ts
Skillz4Killz 3a5bdce32d feat: helpers support strings in args (#2478)
* fix: helpers support strings in args

* fix: fmt
2022-09-15 20:59:02 -05:00

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 },
);
}