mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-07 10:22:59 +00:00
Add support for ForumChannel.default_layout
This commit is contained in:
@ -66,6 +66,7 @@ __all__ = (
|
||||
'AutoModRuleTriggerType',
|
||||
'AutoModRuleEventType',
|
||||
'AutoModRuleActionType',
|
||||
'ForumLayoutType',
|
||||
)
|
||||
|
||||
if TYPE_CHECKING:
|
||||
@ -734,6 +735,12 @@ class AutoModRuleActionType(Enum):
|
||||
timeout = 3
|
||||
|
||||
|
||||
class ForumLayoutType(Enum):
|
||||
not_set = 0
|
||||
list_view = 1
|
||||
gallery_view = 2
|
||||
|
||||
|
||||
def create_unknown_value(cls: Type[E], val: Any) -> E:
|
||||
value_cls = cls._enum_value_cls_ # type: ignore # This is narrowed below
|
||||
name = f'unknown_{val}'
|
||||
|
Reference in New Issue
Block a user