eximiabots-radiox/src/client/funcs/loadState.js

11 lines
254 B
JavaScript
Raw Normal View History

2021-09-02 22:21:55 +00:00
module.exports = function loadState(client, guild){
let data = client.datastore.getEntry(guild.id);
if(!data) return;
let state;
state = data.state;
data.state = {};
client.datastore.updateEntry(guild, data);
return state;
2021-09-09 09:44:50 +00:00
}