Open SzoDavid opened 2 years ago
Maybe the issue is with parsing the channels used by the bot in the current server. Check what happens if there are channels registered in one server, but there are none in an other one.
If this is the issue, in this case display an embed saying for example "There are
Maybe the issue is with parsing the channels used by the bot in the current server. Check what happens if there are channels registered in one server, but there are none in an other one.
From what I've seen it isn't related to that. It happens because the value of statusEmbed for the current channels is set to an empty string (it is set in game/status.js here, then the foreach doesn't happen, because the query doen't return anything, thus the function returns an empty string for channels), which I think causes this error to occur.
If the database is empty running /status throws an error: