Browse Source

Check for guild owner in Role.is_assignable()

pull/6985/head
TheOneMusic 4 years ago
committed by GitHub
parent
commit
9ba5745e68
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      discord/role.py

2
discord/role.py

@ -263,7 +263,7 @@ class Role(Hashable):
.. versionadded:: 2.0
"""
return not self.is_default() and not self.managed and self.guild.me.top_role > self
return not self.is_default() and not self.managed and (self.guild.me.top_role > self or self.guild.me == self.guild.owner)
@property
def permissions(self):

Loading…
Cancel
Save