|
|
@ -133,7 +133,7 @@ class Permissions: |
|
|
|
def all(cls): |
|
|
|
"""A factory method that creates a :class:`Permissions` with all |
|
|
|
permissions set to True.""" |
|
|
|
return cls(0b01111111111101111111111111111111) |
|
|
|
return cls(0b01111111111111111111111111111111) |
|
|
|
|
|
|
|
@classmethod |
|
|
|
def all_channel(cls): |
|
|
@ -154,7 +154,7 @@ class Permissions: |
|
|
|
def general(cls): |
|
|
|
"""A factory method that creates a :class:`Permissions` with all |
|
|
|
"General" permissions from the official Discord UI set to ``True``.""" |
|
|
|
return cls(0b01111100000000000000000010111111) |
|
|
|
return cls(0b01111100000010000000000010111111) |
|
|
|
|
|
|
|
@classmethod |
|
|
|
def text(cls): |
|
|
@ -397,7 +397,17 @@ class Permissions: |
|
|
|
def external_emojis(self, value): |
|
|
|
self._set(18, value) |
|
|
|
|
|
|
|
# 1 unused |
|
|
|
@property |
|
|
|
def view_guild_insights(self): |
|
|
|
""":class:`bool`: Returns ``True`` if a user can view the guild's insights. |
|
|
|
|
|
|
|
.. versionadded:: 1.3.0 |
|
|
|
""" |
|
|
|
return self._bit(19) |
|
|
|
|
|
|
|
@view_guild_insights.setter |
|
|
|
def view_guild_insights(self, value): |
|
|
|
self._set(19, value) |
|
|
|
|
|
|
|
@property |
|
|
|
def connect(self): |
|
|
|