mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Implement StageChannel and related methods
This commit is contained in:
1 parent
e8a9726ad2
commit
1b2688518e
8 files changed
+426
-68
No files matched your search
@@ -213,6 +213,15 @@ class Permissions(BaseFlags):
|
||||
"""
|
||||
return cls(1 << 32)
|
||||
|
||||
@classmethod
|
||||
def stage_moderator(cls):
|
||||
"""A factory method that creates a :class:`Permissions` with all
|
||||
"Stage Moderator" permissions from the official Discord UI set to ``True``.
|
||||
|
||||
.. versionadded:: 1.7
|
||||
"""
|
||||
return cls(0b100000001010000000000000000000000)
|
||||
|
||||
@classmethod
|
||||
def advanced(cls):
|
||||
"""A factory method that creates a :class:`Permissions` with all
|
||||
@@ -222,7 +231,6 @@ class Permissions(BaseFlags):
|
||||
"""
|
||||
return cls(1 << 3)
|
||||
|
||||
|
||||
def update(self, **kwargs):
|
||||
r"""Bulk updates this permission object.
|
||||
|
||||
|
||||
Reference in new issue
Block a user