diff --git a/src/client/funcs/loadState.js b/src/client/funcs/loadState.js index 676685e..d56c275 100644 --- a/src/client/funcs/loadState.js +++ b/src/client/funcs/loadState.js @@ -4,6 +4,8 @@ module.exports = function loadState(client, guild){ let state; state = data.state; + if(!state) return; + data.state = {}; client.datastore.updateEntry(guild, data); return state;