mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-07 10:22:59 +00:00
Take into consideration member timeouts in permission calculations
This commit is contained in:
@ -151,6 +151,13 @@ class Permissions(BaseFlags):
|
||||
"""
|
||||
return cls(0b11111111111111111111111111111111111111111)
|
||||
|
||||
@classmethod
|
||||
def _timeout_mask(cls) -> int:
|
||||
p = cls.all()
|
||||
p.view_channel = False
|
||||
p.read_message_history = False
|
||||
return ~p.value
|
||||
|
||||
@classmethod
|
||||
def all_channel(cls) -> Self:
|
||||
"""A :class:`Permissions` with all channel-specific permissions set to
|
||||
|
Reference in New Issue
Block a user