diff --git a/CHANGELOG.md b/CHANGELOG.md index 33d9e70167..7e225b40ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -97,6 +97,8 @@ These changes are available on the `master` branch, but have not yet been releas ([#2564](https://github.com/Pycord-Development/pycord/pull/2564)) - Fixed `Subscription.renewal_sku_ids` not accepting `None` from the received payload. ([#2709](https://github.com/Pycord-Development/pycord/pull/2709)) +- Fixed `ForumChannel.edit` allowing `default_reaction_emoji` to be `None` + ([#2739](https://github.com/Pycord-Development/pycord/pull/2739)) ### Changed diff --git a/discord/abc.py b/discord/abc.py index 04ec85fbe9..3b490f42b6 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -521,13 +521,17 @@ async def _edit( ) elif isinstance(default_reaction_emoji, str): default_reaction_emoji = PartialEmoji.from_str(default_reaction_emoji) + elif default_reaction_emoji is None: + pass else: raise InvalidArgument( - "default_reaction_emoji must be of type: GuildEmoji | int | str" + "default_reaction_emoji must be of type: GuildEmoji | int | str | None" ) options["default_reaction_emoji"] = ( default_reaction_emoji._to_forum_reaction_payload() + if default_reaction_emoji + else None ) if options: