Compare commits
4 Commits
2151e3c912
...
aba057a01a
Author | SHA1 | Date | |
---|---|---|---|
aba057a01a | |||
6cf1f0bc1a | |||
ad685d0143 | |||
80081515ac |
@ -579,13 +579,13 @@ class ModerationManager implements Initialisable, CallbackClient
|
||||
const dmBefore = [ 'BAN', 'KICK', 'SOFTBAN' ].includes(infraction.type);
|
||||
|
||||
if (dmBefore)
|
||||
await infraction.handle();
|
||||
await response.infraction.handle();
|
||||
const result = await response.infraction.execute();
|
||||
if (!result.error)
|
||||
{
|
||||
if (!dmBefore)
|
||||
await infraction.handle();
|
||||
await infraction.save();
|
||||
await response.infraction.handle();
|
||||
await response.infraction.save();
|
||||
}
|
||||
|
||||
// Infraction doesn't have an ID until it is executed, hence this after execute
|
||||
|
Loading…
Reference in New Issue
Block a user