mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 13:53:12 +02:00
Remove client.setTimeout/setInterval
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user