Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider efc78ee8 rédigé par Sorunome's avatar Sorunome Validation de GitHub
Parcourir les fichiers

Yes, this is better


Co-Authored-By: default avatarHalf-Shot <will@half-shot.uk>
parent fec05858
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -65,7 +65,11 @@ export class DiscordClientFactory { ...@@ -65,7 +65,11 @@ export class DiscordClientFactory {
await client.login(token); await client.login(token);
const id = client.user.id; const id = client.user.id;
client.destroy().catch(() => { try {
await client.destroy();
} catch (err) {
log.warn("Failed to destroy client ", id);
}
log.warn("Failed to destroy client ", id); log.warn("Failed to destroy client ", id);
}); });
return id; return id;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter