Update LogCommand.cs
This commit is contained in:
parent
2ef1289fb1
commit
2ff403702e
@ -139,12 +139,12 @@ namespace NadekoBot.Modules.Administration
|
|||||||
{
|
{
|
||||||
var diffRoles = after.Roles.Where(r => !before.Roles.Contains(r)).Select(r => "**" + r.Name + "**");
|
var diffRoles = after.Roles.Where(r => !before.Roles.Contains(r)).Select(r => "**" + r.Name + "**");
|
||||||
//str += $"**User's Roles changed ⚔➕**👤`{before.ToString()}`\n\tNow has {string.Join(", ", diffRoles)} role.";
|
//str += $"**User's Roles changed ⚔➕**👤`{before.ToString()}`\n\tNow has {string.Join(", ", diffRoles)} role.";
|
||||||
str += $"👤`{before.ToString()}` **User's Role Added** 🆔 `{before.Id}`\n⚔⏫ {string.Join(", ", diffRoles)} `Now has:` *{string.Join(", ", after.Roles.Select(r => r.Name)).SanitizeMentions()}* `role(s)`";
|
str += $"👤`{before.ToString()}` **User's Role Added** 🆔 `{before.Id}`\n⚔⏫ {string.Join(", ", diffRoles)} **`Now has: {string.Join(", ", after.Roles.Select(r => r.Name)).SanitizeMentions()} role(s)`**";
|
||||||
}
|
}
|
||||||
else if (before.Roles.Count() > after.Roles.Count())
|
else if (before.Roles.Count() > after.Roles.Count())
|
||||||
{
|
{
|
||||||
var diffRoles = before.Roles.Where(r => !after.Roles.Contains(r)).Select(r => "**" + r.Name + "**");
|
var diffRoles = before.Roles.Where(r => !after.Roles.Contains(r)).Select(r => "**" + r.Name + "**");
|
||||||
str += $"👤`{before.ToString()}` **User's Role Removed** 🆔 `{before.Id}`\n⚔⏬ {string.Join(", ", diffRoles)} `Now has:` *{string.Join(", ", after.Roles.Select(r => r.Name)).SanitizeMentions()}* `role(s)`";
|
str += $"👤`{before.ToString()}` **User's Role Removed** 🆔 `{before.Id}`\n⚔⏬ {string.Join(", ", diffRoles)} **`Now has: {string.Join(", ", after.Roles.Select(r => r.Name)).SanitizeMentions()} role(s)`**";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user