setNickname method

Future<void> setNickname(
  1. String value,
  2. String? reason
)

Change the member's nickname.

await member.setNickname('new-nickname', 'Testing');

Implementation

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