This can't work, since if the value given for mute or deaf is anything other than -1 (so basically, true / false, which is what most users would expect), these lines will always assign "".
Invert the condition.
On top of that, how am I supposed to pass properties as nullable (for example, not editing username ?)
This can't work, since if the value given for
mute
ordeaf
is anything other than-1
(so basically,true
/false
, which is what most users would expect), these lines will always assign""
.Invert the condition.
On top of that, how am I supposed to pass properties as nullable (for example, not editing username ?)