added role icon to .inrole, .winlb will now show userids when user can't be found

This commit is contained in:
Toastie 2024-12-11 12:35:17 +13:00
parent 4910e53854
commit afc1541865
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
2 changed files with 4 additions and 1 deletions

View file

@ -149,6 +149,9 @@ public partial class Gambling
?? (await _userService.GetUserAsync(x.UserId))?.Username
?? x.UserId.ToString();
if (user.StartsWith("??"))
user = x.UserId.ToString();
outputItems.Add(new WinLbStat(i + 1 + (page * 10), user, x.Game, x.MaxWin));
}

View file

@ -186,7 +186,7 @@ public partial class Utility : EllieModule
return CreateEmbed()
.WithOkColor()
.WithTitle(GetText(strs.inrole_list(roleName, roleUsers.Count)))
.WithTitle(GetText(strs.inrole_list(role?.GetIconUrl() + roleName, roleUsers.Count)))
.WithDescription(string.Join("\n", pageUsers));
})
.SendAsync();