[Core]: Allow setting embed color to none. #6707
No reviewers
Labels
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot!6707
Loading…
Reference in a new issue
No description provided.
Delete branch "Evanroby/setcolor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description of the changes
Fixes #6618
Rewrite of AI-looking PR #6702
[p]set colourconverted to a group so missing args now errors instead of silently resetting to red[p]set colour themesets embed colour toNone(Discord's default theme colour)[p]set colour resetexplicitly resets to Red's default (Flame Red,0xE74C3C, or15158332)get_embed_colorandembed_colourreturn type updated toOptional[discord.Colour]_pre_loginguarded againstNonecolor value to prevent crash on startupHave the changes in this PR been tested?
Yes
@ -4090,16 +4090,41 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):- `[p]set color #7F8C8D`(untested suggestion)
.clearwould be better, mostly to avoid inconsistencies if we ever decide to change the default color for some reason. That would require either fetching to know what the default was, or storing the default in some way that it can be imported. I would probably just go with the fetch, since this command does not particularly care about the mild performance hit.github.com/Cog-Creators/Red-DiscordBot@e2acec0862/redbot/core/bot.py (L121)@ -4090,16 +4090,41 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):- `[p]set color #7F8C8D`I'll run testings with this, we'll see if it works. If it works correctly, I'll resolve
@ -4090,16 +4090,41 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):- `[p]set color #7F8C8D`Works great for me.
@ -4090,16 +4090,41 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):- `[p]set color #7F8C8D`Looking closer at the rest of the PR, would it be better for this to be
discord.Colour(default_color) if default_coloris not None else None?@ -4090,16 +4090,41 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):- `[p]set color #7F8C8D`Great catch fixed it
Nonecolour not accepted inset colour#6618