change: Inrole improved

This commit is contained in:
Kwoth
2024-05-08 01:44:14 +00:00
parent 4f0692db59
commit 4e559d2606
2 changed files with 2 additions and 1 deletions

View File

@@ -51,6 +51,7 @@ Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog.
- The bot will now send a discord Reply to every command - The bot will now send a discord Reply to every command
- `.queuesearch` / `.qs` will now show the results with respective video thumbnails - `.queuesearch` / `.qs` will now show the results with respective video thumbnails
- A lot of code cleanup (still a lot to be done) and Quality of Life improvements - A lot of code cleanup (still a lot to be done) and Quality of Life improvements
- `.inrole` will now show mentions primarily, and use a spoiler to show usersnames too (so that you can see the username in case the mention doesn't work)
### Fixed ### Fixed

View File

@@ -152,7 +152,7 @@ public partial class Utility : NadekoModule
); );
var roleUsers = users.Where(u => role is null ? u.RoleIds.Count == 1 : u.RoleIds.Contains(role.Id)) var roleUsers = users.Where(u => role is null ? u.RoleIds.Count == 1 : u.RoleIds.Contains(role.Id))
.Select(u => $"`{u.Id,18}` {u}") .Select(u => $"{u.Mention} {Format.Spoiler(Format.Code(u.Username))}")
.ToArray(); .ToArray();
await Response() await Response()