Remove client.setTimeout/setInterval

This commit is contained in:
Daniel Odendahl Jr
2017-12-16 20:54:07 +00:00
parent f2ca007b30
commit 1d2911597a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ module.exports = class DeviantartCommand extends Command {
client_secret: DEVIANTART_SECRET
});
this.token = body.access_token;
this.client.setTimeout(() => { this.token = null; }, body.expires_in * 1000);
setTimeout(() => { this.token = null; }, body.expires_in * 1000);
return body;
}
};
@@ -86,7 +86,7 @@ module.exports = class LeagueOfLegendsChampionCommand extends Command {
.get('https://na1.api.riotgames.com/lol/static-data/v3/versions')
.query({ api_key: RIOT_KEY });
[this.version] = body;
this.client.setInterval(() => { this.version = null; }, 3600000);
setInterval(() => { this.version = null; }, 3600000);
return body;
}