diff --git a/CHANGELOG.md b/CHANGELOG.md index 9515f21e80..def0fa5517 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,8 @@ These changes are available on the `master` branch, but have not yet been releas ([#3231](https://github.com/Pycord-Development/pycord/pull/3231)) - Allow `ForumTag` to be created without an emoji. ([#3245](https://github.com/Pycord-Development/pycord/pull/3245)) +- Fix issue where `0` would be ignored as an `Embed`'s `colour` parameter. + ([#3256](https://github.com/Pycord-Development/pycord/pull/3256)) - Fix a bug where `TextChannel.archived_threads` would ignore any limit parameter smaller than 50 and use 50 instead. ([#3266](https://github.com/Pycord-Development/pycord/pull/3266)) diff --git a/discord/embeds.py b/discord/embeds.py index fbdf35c619..166c75577b 100644 --- a/discord/embeds.py +++ b/discord/embeds.py @@ -40,7 +40,6 @@ "EmbedProvider", ) - E = TypeVar("E", bound="Embed") if TYPE_CHECKING: @@ -364,7 +363,7 @@ def __init__( image: str | EmbedMedia | None = None, thumbnail: str | EmbedMedia | None = None, ): - self.colour = colour if colour else color + self.colour = colour if colour is not None else color self.title = title self.type = type self.url = url