deafen method

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

Deafen the member.

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

Implementation

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