@@ -31,6 +31,7 @@ API.v1.addRoute('users.create', { authRequired: true }, {
3131 username : String ,
3232 active : Match . Maybe ( Boolean ) ,
3333 bio : Match . Maybe ( String ) ,
34+ nickname : Match . Maybe ( String ) ,
3435 statusText : Match . Maybe ( String ) ,
3536 roles : Match . Maybe ( Array ) ,
3637 joinDefaultChannels : Match . Maybe ( Boolean ) ,
@@ -436,6 +437,7 @@ API.v1.addRoute('users.update', { authRequired: true, twoFactorRequired: true },
436437 password : Match . Maybe ( String ) ,
437438 username : Match . Maybe ( String ) ,
438439 bio : Match . Maybe ( String ) ,
440+ nickname : Match . Maybe ( String ) ,
439441 statusText : Match . Maybe ( String ) ,
440442 active : Match . Maybe ( Boolean ) ,
441443 roles : Match . Maybe ( Array ) ,
@@ -473,6 +475,7 @@ API.v1.addRoute('users.updateOwnBasicInfo', { authRequired: true }, {
473475 email : Match . Maybe ( String ) ,
474476 name : Match . Maybe ( String ) ,
475477 username : Match . Maybe ( String ) ,
478+ nickname : Match . Maybe ( String ) ,
476479 statusText : Match . Maybe ( String ) ,
477480 currentPassword : Match . Maybe ( String ) ,
478481 newPassword : Match . Maybe ( String ) ,
@@ -484,6 +487,7 @@ API.v1.addRoute('users.updateOwnBasicInfo', { authRequired: true }, {
484487 email : this . bodyParams . data . email ,
485488 realname : this . bodyParams . data . name ,
486489 username : this . bodyParams . data . username ,
490+ nickname : this . bodyParams . data . nickname ,
487491 statusText : this . bodyParams . data . statusText ,
488492 newPassword : this . bodyParams . data . newPassword ,
489493 typedPassword : this . bodyParams . data . currentPassword ,
0 commit comments