Table of Contents

Method EnableMfaAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

EnableMfaAsync(string?)

Enables the mfa requirement for this guild.

public Task EnableMfaAsync(string? reason = null)

Parameters

reason string

The audit log reason.

Returns

Task

Exceptions

UnauthorizedException

Thrown when the current user is not the guilds owner.

NotFoundException

Thrown when the guild does not exist.

ServerErrorException

Thrown when Discord is unable to process the request.