mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Normalize colors to lowercase hex
This commit is contained in:
parent
e455bd6d12
commit
45c5e5ed42
3 changed files with 3 additions and 3 deletions
|
|
@ -87,7 +87,7 @@ namespace PluralKit.Bot
|
|||
if (!Regex.IsMatch(color, "^[0-9a-fA-F]{6}$")) throw Errors.InvalidColorError(color);
|
||||
}
|
||||
|
||||
target.Color = color;
|
||||
target.Color = color?.ToLower();
|
||||
await _data.SaveMember(target);
|
||||
|
||||
await ctx.Reply($"{Emojis.Success} Member color {(color == null ? "cleared" : "changed")}.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue