Implement StageChannel and related methods

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

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.