You can no longer give your max role to other users with .sr
This commit is contained in:
parent
464118f792
commit
57dd324f3e
@ -56,7 +56,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
{
|
{
|
||||||
var guser = (IGuildUser)Context.User;
|
var guser = (IGuildUser)Context.User;
|
||||||
var maxRole = guser.GetRoles().Max(x => x.Position);
|
var maxRole = guser.GetRoles().Max(x => x.Position);
|
||||||
if ((Context.User.Id != Context.Guild.OwnerId) && (maxRole < role.Position || maxRole <= usr.GetRoles().Max(x => x.Position)))
|
if ((Context.User.Id != Context.Guild.OwnerId) && (maxRole <= role.Position || maxRole <= usr.GetRoles().Max(x => x.Position)))
|
||||||
return;
|
return;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user