[Scheduler] Expired bans now give a reason when audit logged. (#12)

This commit is contained in:
2026-08-26 00:39:28 +08:00
committed by GitHub
parent cb2348f89c
commit 896d3fc4d9
2 changed files with 5 additions and 6 deletions
+2 -2
View File
@@ -70,7 +70,7 @@ export default {
}
try {
await interaction.guild.bans.remove(user);
await interaction.guild.bans.remove(user, 'User was softbanned.');
} catch (e) {
console.error(e);
return await interaction.editReply("Error softbanning user (couldn't remove ban).");
@@ -78,4 +78,4 @@ export default {
await interaction.editReply('Softban successful');
}
};
};