closes #1057 mention role can now mention up to 50 peopl

This commit is contained in:
Kwoth 2017-02-15 11:46:58 +01:00
parent 1804b81b8a
commit da79daa924

View File

@ -489,7 +489,7 @@ namespace NadekoBot.Modules.Administration
foreach (var role in roles)
{
send += $"\n**{role.Name}**\n";
send += string.Join(", ", (await Context.Guild.GetUsersAsync()).Where(u => u.GetRoles().Contains(role)).Distinct().Select(u => u.Mention));
send += string.Join(", ", (await Context.Guild.GetUsersAsync()).Where(u => u.GetRoles().Contains(role)).Take(50).Select(u => u.Mention));
}
while (send.Length > 2000)