mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 22:32:52 +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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user