discord.py icon indicating copy to clipboard operation
discord.py copied to clipboard

Add new Discord ui colors

Open 2br-2b opened this issue 8 months ago • 4 comments

Summary

Add new Discord ui colors

What is the feature request for?

The core library

The Problem

Discord just revamped their UI (again). With this comes a few new background colors:

https://discord.com/blog/player-release-q12025

Image

These should be added to colour.py.

I don't have time to look at it now, but if I have the chance I'll grab the colors and add them to the list

The Ideal Solution

Add the colors to colour.py

The Current Solution

No response

Additional Context

No response

2br-2b avatar Mar 25 '25 20:03 2br-2b

I would recommend that the colors be called ui_light, ui_ash, ui_dark, and ui_onyx?

2br-2b avatar Mar 25 '25 20:03 2br-2b

can someone tell me please how this affects a bot? Im not being sarcastic or trying to be rude, just trying to understand.

rrbailey89 avatar May 02 '25 21:05 rrbailey89

can someone tell me please how this affects a bot? Im not being sarcastic or trying to be rude, just trying to understand.

Discord.py has historically kept classmethods on discord.Color/Colour that refer to Discord branding colours, think of the default role colours, etc. Lately this also includes a wider array of them.

This PR would simply add the dominant background colour of the new themes. It's just shortcut methods to access those colours for things like embeds.

AbstractUmbra avatar May 02 '25 22:05 AbstractUmbra

@rrbailey89 this wouldn't affect a bot, this issue is just asking for new colour constants to be added to the discord.Colour class, so they can be used to colour the border of an embed, or anything else using this class.

See #10152 for an implementation.

LeoCx1000 avatar May 02 '25 22:05 LeoCx1000

Shouldn't this issue be closed? It looks like the changes have been merged.

deniselezi avatar Oct 05 '25 16:10 deniselezi