From 92e41627ea7fe3801beb5f462f7f28965eaf815c Mon Sep 17 00:00:00 2001 From: Paillat-dev Date: Wed, 10 Jun 2026 16:10:30 +0200 Subject: [PATCH 1/2] fix: Bug when 0 is used with british-colour in Embed init --- discord/embeds.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 From 443e9f7cf4d8e51a8102319033d8ed10ed6b2eb7 Mon Sep 17 00:00:00 2001 From: Paillat-dev Date: Wed, 10 Jun 2026 16:14:12 +0200 Subject: [PATCH 2/2] docs: CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5173e5795c..ed4a215664 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,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)) ### Deprecated