dev: Some minor renaming to match the strings

add: audit logs for several commands
docs: Updated changelog
fix: xp card user avatar wasn't showing for some users
This commit is contained in:
Kwoth
2024-05-08 01:13:58 +00:00
parent bbc277f4b9
commit 4f0692db59
12 changed files with 73 additions and 52 deletions

View File

@@ -21,11 +21,11 @@ public partial class Permissions
var list = _service.GetBlacklist();
var allItems = await list.Where(x => x.Type == type)
.Select(async i =>
.Select(i =>
{
try
{
return i.Type switch
return Task.FromResult(i.Type switch
{
BlacklistType.Channel => Format.Code(i.ItemId.ToString())
+ " "
@@ -40,14 +40,15 @@ public partial class Permissions
+ " "
+ (_client.GetGuild(i.ItemId)?.ToString() ?? ""),
_ => Format.Code(i.ItemId.ToString())
};
});
}
catch
{
Log.Warning("Can't get {BlacklistType} [{BlacklistItemId}]",
i.Type,
i.ItemId);
return Format.Code(i.ItemId.ToString());
return Task.FromResult(Format.Code(i.ItemId.ToString()));
}
})
.WhenAll();