Skip to content

[Core]: Allow setting embed color to none.#6707

Open
Evanroby wants to merge 4 commits intoCog-Creators:V3/developfrom
Evanroby:setcolor
Open

[Core]: Allow setting embed color to none.#6707
Evanroby wants to merge 4 commits intoCog-Creators:V3/developfrom
Evanroby:setcolor

Conversation

@Evanroby
Copy link
Copy Markdown
Contributor

Description of the changes

Fixes #6618
Rewrite of AI-looking PR #6702

  • [p]set colour converted to a group so missing args now errors instead of silently resetting to red
  • [p]set colour theme sets embed colour to None (Discord's default theme colour)
  • [p]set colour reset explicitly resets to Red's default (Flame Red, 0xE74C3C, or 15158332)
  • get_embed_color and embed_colour return type updated to Optional[discord.Colour]
  • _pre_login guarded against None color value to prevent crash on startup

Have the changes in this PR been tested?

Yes

@github-actions github-actions Bot added Category: Core - API - Commands Package This is related to the `redbot.core.commands` package or `redbot.core.checks` module. Category: Core - Bot Class This is related to the `redbot.core.bot.Red` class. Category: Core - Bot Commands This is related to core commands (Core and CogManagerUI cog classes). labels Mar 29, 2026
Comment thread redbot/core/core_commands.py Outdated
Co-authored-by: Michael Oliveira <34169552+Flame442@users.noreply.github.com>
@Evanroby Evanroby requested a review from Flame442 March 29, 2026 19:08
Comment thread redbot/core/core_commands.py Outdated
@Evanroby Evanroby requested a review from Flame442 March 31, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Category: Core - API - Commands Package This is related to the `redbot.core.commands` package or `redbot.core.checks` module. Category: Core - Bot Class This is related to the `redbot.core.bot.Red` class. Category: Core - Bot Commands This is related to core commands (Core and CogManagerUI cog classes).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Set]:None colour not accepted in set colour

2 participants