mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-25 06:43:17 +00:00
10 lines
253 B
JavaScript
10 lines
253 B
JavaScript
|
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;
|
||
|
}
|