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
stringThe audit log reason.
Returns
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.