This commit is contained in:
Erik 2022-07-14 10:48:37 +03:00
parent 54dff4399d
commit 646a43e755
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -346,7 +346,9 @@ class ModerationManager {
response.infraction.totalPoints += points;
}
const result = await response.infraction.execute();
await targetWrapper.totalPoints(guild, {
// Infraction doesn't have an ID until it is executed, hence this after execute
if (response.infraction.targetType === 'USER') await targetWrapper.totalPoints(guild, {
points, expiration, timestamp: response.infraction.timestamp, id: response.infraction.id
});
return result;