Currently, if you add the label to a chatbox using the fifth parameter when labels are disabled, it returns an error. The problem is that there is no way to know you cannot set the label before getting the error, meaning your code relies on the users configuration.
Either the command needs to just ignore the label if it cannot be set, or a new function (such as canSetLabel returning a boolean) needs to be added.
Currently, if you add the label to a chatbox using the fifth parameter when labels are disabled, it returns an error. The problem is that there is no way to know you cannot set the label before getting the error, meaning your code relies on the users configuration.
Either the command needs to just ignore the label if it cannot be set, or a new function (such as
canSetLabel
returning a boolean) needs to be added.