mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2026-08-06 01:07:13 +00:00
Typescript continues
This commit is contained in:
@@ -1,15 +1,12 @@
|
||||
import { Guild } from "discord.js";
|
||||
import { OAuth2Guild } from "discord.js";
|
||||
import RadioClient from "../../Client";
|
||||
|
||||
export default function loadState(client: RadioClient, guild: Guild){
|
||||
export default function loadState(client: RadioClient, guild: OAuth2Guild) {
|
||||
if(!client.datastore) return;
|
||||
let data = client.datastore.getEntry(guild.id);
|
||||
if(!data) return;
|
||||
let state;
|
||||
|
||||
state = data.state;
|
||||
let state = data.state;
|
||||
if(!state) return;
|
||||
|
||||
data.state = {};
|
||||
client.datastore.updateEntry(guild, data);
|
||||
return state;
|
||||
|
||||
Reference in New Issue
Block a user