Open LucasB25 opened 1 year ago
Well, I am unable to reproduce the first and the third error(s), but the second one says that the variable admin_user_ids
is not defined, so you should check for its definition in other parts of the code.
As for the first one, you should add a check whether the bot has a presence set or not, example:
// Assuming that `.status` is a `string` object,
// we return an empty string if no presence
// was received or fetched from gateway.
let c = botUser.presence?.status ?? '';
Last but not least, in the third one, you should do the same thing for the first one, example:
if (req?.user?.staff) { ... }
Here, ?.
checks whether the variable that is currently being accessed checks whether the variable req
(or req.user
, if it is accessible) is null
or undefined
.
Hope this helps! :heart:
Bug description
Bot commands no longer work. but the panel can return them