Browse Source

Fix scheduled event payload and docstring type

pull/7613/head
metro 3 years ago
committed by GitHub
parent
commit
9b65b5ce2e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      discord/scheduled_event.py
  2. 2
      discord/types/scheduled_event.py

2
discord/scheduled_event.py

@ -88,7 +88,7 @@ class ScheduledEvent(Hashable):
The ID of the entity this event is for if available.
start_time: :class:`datetime.datetime`
The time that the scheduled event will start in UTC.
end_time: :class:`datetime.datetime`
end_time: Optional[:class:`datetime.datetime`]
The time that the scheduled event will end in UTC.
privacy_level: :class:`PrivacyLevel`
The privacy level of the scheduled event.

2
discord/types/scheduled_event.py

@ -75,7 +75,7 @@ class EntityMetadata(TypedDict):
class ExternalScheduledEvent(_BaseGuildScheduledEvent):
channel_id: Literal[None]
entity_metadata: EntityMetadata
scheduled_end_time: Optional[str]
scheduled_end_time: str
entity_type: Literal[3]

Loading…
Cancel
Save