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

Merge pull request #167 from Half-Shot/hs/fix-client-error

Fix puppeted clients blowing up for not emitting errors
parents 43deebeb 98e353b6
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -75,6 +75,9 @@ export class DiscordClientFactory {
sync: true,
messageCacheLifetime: 5,
}));
client.on("debug", (msg) => { log.verbose("discord.js-ptp", msg); });
client.on("error", (msg) => { log.error("discord.js-ptp", msg); });
client.on("warn", (msg) => { log.warn("discord.js-ptp", msg); });
try {
await client.login(token);
log.verbose("ClientFactory", "Logged in. Storing ", userId);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter