mute method

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

Mute the member.

await member.voice.mute(reason: 'Testing');

Implementation

Future<void> mute({String? reason}) async {
  await _memberMethods.updateMember(
    serverId: _member.server.id,
    memberId: _member.id,
    payload: {'mute': true},
    reason: reason,
  );
}