mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2026-08-06 01:07:13 +00:00
TypeScript Initial
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
module.exports = function loadState(client, guild){
|
||||
let data = client.datastore.getEntry(guild.id);
|
||||
if(!data) return;
|
||||
let state;
|
||||
|
||||
state = data.state;
|
||||
if(!state) return;
|
||||
|
||||
data.state = {};
|
||||
client.datastore.updateEntry(guild, data);
|
||||
return state;
|
||||
}
|
||||
Reference in New Issue
Block a user