Update Utility.cs

This commit is contained in:
samvaio 2016-11-21 06:15:07 +05:30 committed by GitHub
parent caa1666ef7
commit d66ada4df6

View File

@ -55,8 +55,8 @@ namespace NadekoBot.Modules.Utility
{
var role = channel.Guild.Roles.Where(r => r.Name.ToUpperInvariant() == roleStr).FirstOrDefault();
if (role == null) continue;
send += $"__**{role.Name}**__\n```css\n";
send += string.Join(", ```", channel.Guild.GetUsers().Where(u => u.Roles.Contains(role)).Select(u => u.ToString()));
send += $"```css\n \n[{role.Name}]\n";
send += string.Join(", ", channel.Guild.GetUsers().Where(u => u.Roles.Contains(role)).Select(u => u.ToString()) + "\n```");
}
var usr = umsg.Author as IGuildUser;
while (send.Length > 2000)