client.on("token-privilege-will-expire", async function(){ // After requesting a new token await client.renewToken(token); });