forked from Galactic/galactic-bot
bugfix
This commit is contained in:
parent
54dff4399d
commit
646a43e755
@ -346,7 +346,9 @@ class ModerationManager {
|
|||||||
response.infraction.totalPoints += points;
|
response.infraction.totalPoints += points;
|
||||||
}
|
}
|
||||||
const result = await response.infraction.execute();
|
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
|
points, expiration, timestamp: response.infraction.timestamp, id: response.infraction.id
|
||||||
});
|
});
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user