Update Utility.cs

This commit is contained in:
samvaio 2016-11-21 06:19:43 +05:30 committed by GitHub
parent d66ada4df6
commit b692238ecb

View File

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