Implement StageChannel and related methods

This commit is contained in:
Nadir Chowdhury authored and GitHub committed 2021-04-03 22:43:41 -04:00
1 parent e8a9726ad2
commit 1b2688518e
8 files changed
+426 -68

No files matched your search

+9 -1
View File
@@ -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.