Add Guild.nsfw_level
This commit is contained in:
@@ -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