enableMfa method

Future<void> enableMfa({
  1. String? reason,
})

Enable the member's MFA. This member will be required to verify their account for accessing the server.

await member.enableMfa(reason: 'Testing');

Implementation

Future<void> enableMfa({String? reason}) => _memberMethods.updateMember(
    serverId: server.id,
    memberId: id,
    payload: {'mfa_enable': true},
    reason: reason);