From fe3b5963793e76cce94a0706e85738c2ac68e287 Mon Sep 17 00:00:00 2001 From: DA344 <108473820+DA-344@users.noreply.github.com> Date: Tue, 20 May 2025 23:21:40 +0200 Subject: [PATCH] fix: unexpected behaviour on accent_colours Co-authored-by: Soheab <33902984+Soheab@users.noreply.github.com> --- discord/ui/container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ui/container.py b/discord/ui/container.py index 8f6d425d1..ed1ba80b0 100644 --- a/discord/ui/container.py +++ b/discord/ui/container.py @@ -151,7 +151,7 @@ class Container(Item[V]): self.add_item(child) self.spoiler: bool = spoiler - self._colour = accent_colour or accent_color + self._colour = accent_colour if accent_colour is not None else accent_color self.row = row self.id = id