From 4e559d26062f07ad89d9edf90c5bcf1347b5cda8 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Wed, 8 May 2024 01:44:14 +0000 Subject: [PATCH] change: Inrole improved --- CHANGELOG.md | 1 + src/NadekoBot/Modules/Utility/Utility.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b9814943..c10045507 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -51,6 +51,7 @@ Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog. - The bot will now send a discord Reply to every command - `.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 +- `.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 diff --git a/src/NadekoBot/Modules/Utility/Utility.cs b/src/NadekoBot/Modules/Utility/Utility.cs index ffa79cb51..8386e1cef 100644 --- a/src/NadekoBot/Modules/Utility/Utility.cs +++ b/src/NadekoBot/Modules/Utility/Utility.cs @@ -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)) - .Select(u => $"`{u.Id,18}` {u}") + .Select(u => $"{u.Mention} {Format.Spoiler(Format.Code(u.Username))}") .ToArray(); await Response()