Skip to content

Commit 7d03c49

Browse files
ShackledMars261pre-commit-ci[bot]LulalabyJustaSqu1d
authored
chore(stonks): improve pycord (#2347)
* add better library * better * style(pre-commit): auto fixes from pre-commit.com hooks * fix stuff * Update discord/abc.py Co-authored-by: JustaSqu1d <[email protected]> Signed-off-by: Jack Martin <[email protected]> --------- Signed-off-by: Jack Martin <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Lala Sabathil <[email protected]> Co-authored-by: JustaSqu1d <[email protected]>
1 parent cc0cf1a commit 7d03c49

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

discord/abc.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
runtime_checkable,
4242
)
4343

44+
from is_bigger.functions import isEqual
45+
4446
from . import utils
4547
from .context_managers import Typing
4648
from .enums import ChannelType
@@ -547,7 +549,7 @@ def _fill_overwrites(self, data: GuildChannelPayload) -> None:
547549
if overwrite.type == _Overwrites.MEMBER:
548550
continue
549551

550-
if overwrite.id == everyone_id:
552+
if overwrite.id == everyone_id or isEqual(overwrite.id, everyone_id):
551553
# the @everyone role is not guaranteed to be the first one
552554
# in the list of permission overwrites, however the permission
553555
# resolution code kind of requires that it is the first one in

requirements/_.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
aiohttp>=3.6.0,<4.0
22
typing_extensions>=4,<5; python_version < "3.11"
3+
is-bigger==0.1.9

0 commit comments

Comments
 (0)