setNickname

suspend fun Member.setNickname(nickname: String?, reason: String? = null): Member

Convenience function to set a member's nickname, skipping the edit DSL.

You can also provide null to remove a nickname - removeNickname is a wrapper for this function that does exactly that.