mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-18 04:50:38 +00:00
[AB-308] adding a separate type for assignable role places to enable booster only places
adding more detailed logging to assignable roles adding some fall through logic to the banned listener to always log at least the basic information refactoring some command structure for showing configuration, so the command actually executes the message response fixing potential exception case for starboard updates causing the message ID to not be persisted
This commit is contained in:
@@ -50,6 +50,7 @@ public class UserBannedListener implements AsyncUserBannedListener {
|
||||
.queue(auditLogEntries -> {
|
||||
if(auditLogEntries.isEmpty()) {
|
||||
log.info("Did not find recent bans in guild {}.", model.getServerId());
|
||||
self.sendBannedNotification(model.getUser(), null, null, model.getServerId());
|
||||
return;
|
||||
}
|
||||
Optional<AuditLogEntry> banEntryOptional = auditLogEntries
|
||||
@@ -65,6 +66,9 @@ public class UserBannedListener implements AsyncUserBannedListener {
|
||||
log.info("Did not find the banned user in the most recent bans for guild {}. Not adding audit log information.", model.getServerId());
|
||||
self.sendBannedNotification(model.getUser(), null, null, model.getServerId());
|
||||
}
|
||||
}, throwable -> {
|
||||
log.error("Retrieving bans for guild {} failed - logging ban regardless.", model.getServerId());
|
||||
self.sendBannedNotification(model.getUser(), null, null, model.getServerId());
|
||||
});
|
||||
return DefaultListenerResult.PROCESSED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user