Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new color attribute to member #6969

Closed
ironman9356 opened this issue May 27, 2021 · 10 comments
Closed

Add new color attribute to member #6969

ironman9356 opened this issue May 27, 2021 · 10 comments
Labels
discord limitation This can't be fixed because it's a discord limitation wontfix This will not be worked on.

Comments

@ironman9356
Copy link

Summary

The latest discord update bot colors to members in the profile

What is the feature request for?

The core library

The Problem

The latest discord update added a new thing to member profiles where the dominant color in the users profile picture is put Example :
image
Red in my account

The Ideal Solution

This feature could return the color which can be used for embed colors
An example embed can be coded like this

embed=discord.Embed(title="Title" , description="Description" , color=ctx.author.color)

The Current Solution

No response

Additional Context

No response

@ironman9356 ironman9356 added the feature request This is a feature request. label May 27, 2021
@mesub7
Copy link
Contributor

mesub7 commented May 27, 2021

But isn't that a banner? What happens if I choose to have an image of a dog for example? What colour will it pick?

@helish88
Copy link

And get member "About me" and member banner

@MrKomodoDragon
Copy link
Contributor

Bots can’t see profiles, so this probably wouldn’t work.

@ironman9356
Copy link
Author

But isn't that a banner? What happens if I choose to have an image of a dog for example? What colour will it pick?

well its a discord thing i didnt make it i just found it can be good for embed colors but it will be the most dominant color

@meizuflux
Copy link
Contributor

Depends if Discord allows bots to view this info.

@ironman9356
Copy link
Author

Bots can’t see profiles, so this probably wouldn’t work.

Yes discord can send the color maybe in the next update i am not sure how it works

@MrKomodoDragon
Copy link
Contributor

Also, the dominant color is client side

@Dorukyum
Copy link
Contributor

discord.Member.colour already exists, and it returns the colour of the member's top role. If this ever gets implemented, it should have a different attribute name.

@Rapptz
Copy link
Owner

Rapptz commented May 28, 2021

The algorithm for getting that colour is not public or exposed so I doubt I'll be able to fetch it. It's client-side only.

@Rapptz Rapptz closed this as completed May 28, 2021
@Rapptz Rapptz added discord limitation This can't be fixed because it's a discord limitation wontfix This will not be worked on. and removed feature request This is a feature request. labels May 28, 2021
@tookender
Copy link

And get member "About me" and member banner

pretty sure bots can't get the about me of a user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discord limitation This can't be fixed because it's a discord limitation wontfix This will not be worked on.
Projects
None yet
Development

No branches or pull requests

8 participants