#Only give roles lower than the command users role

1 messages · Page 1 of 1 (latest)

spare citrus
#

Hey,
I am trying to figure out a way for a command, that gives a specified role to a specified target user, but the role specified will only be applied to the target user, if the command users top role is higher (within role hierarchy) than the specified role to give.

I couldn't find a similar question here, so I hope this is not a duplicate.

Thanks in advance!

zealous basaltBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

spare citrus
#

Only give roles lower than the command users role

potent jasper
#

you can check the position of a role using role.position I think

#

then just make a condition against that

spare citrus