diff --git a/commands/search/deviantart.js b/commands/search/deviantart.js index 6f4f0cfc..d4b2b2ab 100644 --- a/commands/search/deviantart.js +++ b/commands/search/deviantart.js @@ -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; } }; diff --git a/commands/search/league-of-legends-champion.js b/commands/search/league-of-legends-champion.js index d6453509..12503937 100644 --- a/commands/search/league-of-legends-champion.js +++ b/commands/search/league-of-legends-champion.js @@ -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; }