diff options
| author | TheOneMusic <[email protected]> | 2021-05-28 14:18:49 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-05-28 08:18:49 -0400 |
| commit | 9ba5745e685570d35951208358b714f13e81bdba (patch) | |
| tree | 80cc00863a2a8ec35f5b383e4e62cd0473674f92 /discord/role.py | |
| parent | Add support for select components (diff) | |
| download | discord.py-9ba5745e685570d35951208358b714f13e81bdba.tar.xz discord.py-9ba5745e685570d35951208358b714f13e81bdba.zip | |
Check for guild owner in Role.is_assignable()
Diffstat (limited to 'discord/role.py')
| -rw-r--r-- | discord/role.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/role.py b/discord/role.py index ca9991b9..381aecf0 100644 --- a/discord/role.py +++ b/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): |