mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 18:00:08 +00:00
18 lines
474 B
TypeScript
18 lines
474 B
TypeScript
import type { BigString, MfaLevels } from '@discordeno/types'
|
|
import type { RestManager } from '../../restManager.js'
|
|
|
|
/** Modify a guild's MFA level. Requires guild ownership. */
|
|
export async function editGuildMfaLevel (
|
|
rest: RestManager,
|
|
guildId: BigString,
|
|
mfaLevel: MfaLevels,
|
|
reason?: string
|
|
): Promise<void> {
|
|
return await rest.runMethod<void>(
|
|
rest,
|
|
'POST',
|
|
rest.constants.routes.GUILD_MFA_LEVEL(guildId),
|
|
{ level: mfaLevel, reason }
|
|
)
|
|
}
|