Peripherals++

Peripherals++

359k Downloads

Chatbox commands error if label cannot be set, but has no way to detect that

KnightMiner opened this issue ยท 0 comments

commented

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.