Update Utility.cs
This commit is contained in:
parent
b692238ecb
commit
85e5e5ba84
@ -55,8 +55,9 @@ 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[{role.Name}]\n";
|
||||||
send += string.Join(", \n```", channel.Guild.GetUsers().Where(u => u.Roles.Contains(role)).Select(u => u.ToString()));
|
send += string.Join(", ", channel.Guild.GetUsers().Where(u => u.Roles.Contains(role)).Select(u => u.ToString()));
|
||||||
|
send += $"\n```";
|
||||||
}
|
}
|
||||||
var usr = umsg.Author as IGuildUser;
|
var usr = umsg.Author as IGuildUser;
|
||||||
while (send.Length > 2000)
|
while (send.Length > 2000)
|
||||||
|
Loading…
Reference in New Issue
Block a user