edit method

Future<void> edit(
  1. MemberBuilder builder, {
  2. String? reason,
})

Edit the member.

await member.edit(MemberBuilder({
  nickname: 'new-nickname',
  isMuted: true,
  ...
}), reason: 'Testing');

Implementation

Future<void> edit(MemberBuilder builder, {String? reason}) =>
    _memberMethods.updateMember(
        serverId: server.id,
        memberId: id,
        reason: reason,
        payload: {
          'nick': nickname,
          'mute': builder.isMuted,
          'deaf': builder.isDeafened,
          'exclude': builder.isExcluded,
        });