diff --git a/CHANGELOG.md b/CHANGELOG.md index dd044d7072..57d0af8f6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,8 @@ These changes are available on the `master` branch, but have not yet been releas - Fixed `AttributeError` caused by [#1957](https://github.com/Pycord-Development/pycord/pull/1957) when using listeners in cogs. ([#1989](https://github.com/Pycord-Development/pycord/pull/1989)) +- Fixed scheduled events breaking when changing the location from external to a channel. + ([#1998](https://github.com/Pycord-Development/pycord/pull/1998)) ## [2.4.1] - 2023-03-20 diff --git a/discord/scheduled_events.py b/discord/scheduled_events.py index 8fefdc2c24..6f70ff88c6 100644 --- a/discord/scheduled_events.py +++ b/discord/scheduled_events.py @@ -359,6 +359,8 @@ async def edit( payload["channel_id"] = location.value.id payload["entity_metadata"] = None + payload["entity_type"] = location.type.value + location = location if location is not MISSING else self.location if end_time is MISSING and location.type is ScheduledEventLocationType.external: end_time = self.end_time