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

Merge branch 'soru/user-update-try-catch' into develop

parents e7cf5bdf c1bef7ff
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -344,11 +344,15 @@ export class UserSyncroniser { ...@@ -344,11 +344,15 @@ export class UserSyncroniser {
await Promise.all( await Promise.all(
wantRooms.map( wantRooms.map(
async (roomId) => { async (roomId) => {
try {
if (doJoin) { if (doJoin) {
await this.JoinRoom(member, roomId); await this.JoinRoom(member, roomId);
} else { } else {
await this.ApplyStateToRoom(state, roomId, member.guild.id); 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