mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Add Guild.nsfw_level
This commit is contained in:
1 parent
dd727fb6f4
commit
a7ae2eb1bb
4 files changed
+36
-7
No files matched your search
@@ -53,6 +53,7 @@ __all__ = (
|
||||
'StagePrivacyLevel',
|
||||
'InteractionType',
|
||||
'InteractionResponseType',
|
||||
'NSFWLevel',
|
||||
)
|
||||
|
||||
def _create_value_cls(name):
|
||||
@@ -488,6 +489,12 @@ class StagePrivacyLevel(Enum):
|
||||
closed = 2
|
||||
guild_only = 2
|
||||
|
||||
class NSFWLevel(Enum):
|
||||
default = 0
|
||||
explicit = 1
|
||||
safe = 2
|
||||
age_restricted = 3
|
||||
|
||||
T = TypeVar('T')
|
||||
|
||||
def create_unknown_value(cls: Type[T], val: Any) -> T:
|
||||
|
||||
Reference in new issue
Block a user