Skip to content

Commit bd771d9

Browse files
JL710pre-commit-ci[bot]Lulalaby
authored
fix: datetime type for create_scheduled_event (#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]>
1 parent 27ece86 commit bd771d9

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
@@ -167,6 +167,9 @@ These changes are available on the `master` branch, but have not yet been releas
167167
([#2878](https://github.com/Pycord-Development/pycord/pull/2878))
168168
- Fixed `AttributeError` when accessing `AuditLogEntry.changes` more than once.
169169
([#2882])(https://github.com/Pycord-Development/pycord/pull/2882))
170+
- Fixed type hint for argument `start_time` and `end_time` of
171+
`Guild.create_scheduled_event`
172+
([#2879](https://github.com/Pycord-Development/pycord/pull/2879))
170173

171174
### Changed
172175

discord/guild.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4129,8 +4129,8 @@ async def create_scheduled_event(
41294129
*,
41304130
name: str,
41314131
description: str = MISSING,
4132-
start_time: datetime,
4133-
end_time: datetime = MISSING,
4132+
start_time: datetime.datetime,
4133+
end_time: datetime.datetime = MISSING,
41344134
location: str | int | VoiceChannel | StageChannel | ScheduledEventLocation,
41354135
privacy_level: ScheduledEventPrivacyLevel = ScheduledEventPrivacyLevel.guild_only,
41364136
reason: str | None = None,

0 commit comments

Comments
 (0)