mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-10 06:20:20 +00:00
Prevent loadState function updating datastore entries everytime
This commit is contained in:
parent
dc7b14b11a
commit
57aaf92947
@ -4,6 +4,8 @@ module.exports = function loadState(client, guild){
|
|||||||
let state;
|
let state;
|
||||||
|
|
||||||
state = data.state;
|
state = data.state;
|
||||||
|
if(!state) return;
|
||||||
|
|
||||||
data.state = {};
|
data.state = {};
|
||||||
client.datastore.updateEntry(guild, data);
|
client.datastore.updateEntry(guild, data);
|
||||||
return state;
|
return state;
|
||||||
|
Loading…
Reference in New Issue
Block a user