Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions src/whop_sdk/types/forum_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
from __future__ import annotations

from typing import Optional
from typing_extensions import TypedDict
from typing_extensions import Required, TypedDict

from .._types import SequenceNotStr
from .shared.who_can_post_types import WhoCanPostTypes
from .shared.who_can_comment_types import WhoCanCommentTypes
from .shared.email_notification_preferences import EmailNotificationPreferences

__all__ = ["ForumUpdateParams"]
__all__ = ["ForumUpdateParams", "BannerImage"]


class ForumUpdateParams(TypedDict, total=False):
Expand All @@ -20,6 +20,12 @@ class ForumUpdateParams(TypedDict, total=False):
For example, ['spam', 'scam'].
"""

banner_image: Optional[BannerImage]
"""The banner image displayed at the top of the forum page.

Pass null to remove the existing banner.
"""

email_notification_preference: Optional[EmailNotificationPreferences]
"""Email notification preference option for a forum feed"""

Expand All @@ -28,3 +34,13 @@ class ForumUpdateParams(TypedDict, total=False):

who_can_post: Optional[WhoCanPostTypes]
"""Who can post on a forum feed"""


class BannerImage(TypedDict, total=False):
"""The banner image displayed at the top of the forum page.

Pass null to remove the existing banner.
"""

id: Required[str]
"""The ID of an existing file object."""