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

add try...catch around updating a guild member

parent e7cf5bdf
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -344,11 +344,15 @@ export class UserSyncroniser {
await Promise.all(
wantRooms.map(
async (roomId) => {
try {
if (doJoin) {
await this.JoinRoom(member, roomId);
} else {
await this.ApplyStateToRoom(state, roomId, member.guild.id);
}
} catch (err) {
log.error(`Failed to update ${member.id} (${member.user.username}) in ${roomId}`, err);
}
},
),
);
......
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