Fix scheduled event payload and docstring type

This commit is contained in:
metro 2022-03-09 21:31:14 -05:00 committed by GitHub
parent 15885ea728
commit 9b65b5ce2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ class ScheduledEvent(Hashable):
The ID of the entity this event is for if available. The ID of the entity this event is for if available.
start_time: :class:`datetime.datetime` start_time: :class:`datetime.datetime`
The time that the scheduled event will start in UTC. 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. The time that the scheduled event will end in UTC.
privacy_level: :class:`PrivacyLevel` privacy_level: :class:`PrivacyLevel`
The privacy level of the scheduled event. The privacy level of the scheduled event.

View File

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