mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 09:18:27 -04:00
change: Inrole improved
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
@@ -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()
|
||||||
|
Reference in New Issue
Block a user