Skip to content

Commit 329ae2f

Browse files
JL710Paillat-dev
authored andcommitted
fix: datetime type for create_scheduled_event (Pycord-Development#2879)
Signed-off-by: Lala Sabathil <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Lala Sabathil <[email protected]> (cherry picked from commit bd771d9) Signed-off-by: Paillat-dev <[email protected]>
1 parent c7fdd01 commit 329ae2f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ These changes are available on the `master` branch, but have not yet been releas
163163
([#2878](https://github.com/Pycord-Development/pycord/pull/2878))
164164
- Fixed `AttributeError` when accessing `AuditLogEntry.changes` more than once.
165165
([#2882])(https://github.com/Pycord-Development/pycord/pull/2882))
166+
- Fixed type hint for argument `start_time` and `end_time` of
167+
`Guild.create_scheduled_event`
168+
([#2879](https://github.com/Pycord-Development/pycord/pull/2879))
166169

167170
### Changed
168171

discord/guild.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3980,8 +3980,8 @@ async def create_scheduled_event(
39803980
*,
39813981
name: str,
39823982
description: str | utils.Undefined = MISSING,
3983-
start_time: datetime,
3984-
end_time: datetime | utils.Undefined = MISSING,
3983+
start_time: datetime.datetime,
3984+
end_time: datetime.datetime | utils.Undefined = MISSING,
39853985
location: str | int | VoiceChannel | StageChannel | ScheduledEventLocation,
39863986
privacy_level: ScheduledEventPrivacyLevel = ScheduledEventPrivacyLevel.guild_only,
39873987
reason: str | None = None,

0 commit comments

Comments
 (0)