Discover icon indicating copy to clipboard operation
Discover copied to clipboard

[Suggestion] Use server custom profile picture

Open ErranticSam opened this issue 2 years ago • 9 comments

don't know if it's possible to get the profile picture we set for a certain server when we're in a vocal channel of it ?

ErranticSam avatar Jul 09 '22 10:07 ErranticSam

This has been talked about before but I don't know how people envision it looking. Just a title above list with server icon & channel name?

trigg avatar Jul 09 '22 11:07 trigg

ah sorry I described the issue poorly I was talking about the Discord Nitro feature allowing you to have custom server profiles and to change your profile picture depending on the server you're on

the idea would be to display the custom profile picture of each user if they have set it

ErranticSam avatar Jul 09 '22 11:07 ErranticSam

Ah yes, I didn't even know that was a feature

trigg avatar Jul 09 '22 12:07 trigg

struggling a bit on this, do you know where I could get the current voice guild ID ?

ErranticSam avatar Jul 09 '22 16:07 ErranticSam

https://github.com/trigg/Discover/blob/8b507a5323b2c46080bc1f39871ec009272c535d/discover_overlay/voice_overlay.py#L490

Here we decide if we have an avatar image for the user and if not request we download one. At this point we don't know the guild id and probably don't even know channel id, but could grab that from discover.connection.current_voice

trigg avatar Jul 09 '22 16:07 trigg

it's quite likely, but I can;t test to find out, that this information is passed in when we get any new user data.

If you're up to finding out you could add print(j) before https://github.com/trigg/Discover/blob/8b507a5323b2c46080bc1f39871ec009272c535d/discover_overlay/discord_connector.py#L375

and see what new user information this reveals. When you enter a new channel it should print a long line of info about the channel and participants in chat

trigg avatar Jul 09 '22 17:07 trigg

I found a way to get the guild ID, it's all OK ... but the feature also needs the guild avatar ID of the user


and see what new user information this reveals. When you enter a new channel it should print a long line of info about the channel and participants in chat

about this, I found informations about current channel data through 'cmd' : 'GET_CHANNEL' : the array 'voice_states' displays all the users logged in the voice channel and their data

unfortunately, there isn't the guild specific avatar ID here, I'm still searching

ErranticSam avatar Jul 09 '22 20:07 ErranticSam

This happens a lot, the api used is incomplete and often features get left out of it. Good luck on finding it

trigg avatar Jul 09 '22 20:07 trigg

yeah, I created a Feature Request on the Discord API GitHub to add this guild avatar ID to the RPC https://github.com/discord/discord-api-docs/discussions/5177

wait and see ...

ErranticSam avatar Jul 09 '22 20:07 ErranticSam

I believe we're not about to see this changed, will close until anything happens on the other end

trigg avatar Feb 23 '24 13:02 trigg