-
Notifications
You must be signed in to change notification settings - Fork 5
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
Change icon #66
Comments
Hi, Not currently...It is currently impossible to dynamically add new icons. In order to add a Rich Presence for Eclipse IDE I had to create a dedicated Discord application. Each application can have up to 150 assets, uploaded by the developer, and only these can be displayed as icons in Discord. It has been asked to allow developers to dynamically add new assets but (AFAIK) the feature is not available yet. See:
... but there may be a workaroundThat being said, I believe that we could overcome this limit. Indeed, if assets are bound to a Discord application, then we "just" have to allow users to specify their own. Users could hence provide (and use) their own icons by:
So how to do that?Here are the tasks that I can think of: 1. Make the Discord application ID configurableThe ID of my application is currently hard-coded in the DiscordRpcProxy class. This must change to allow users to specify their own:
The best way to do this should be to enhance the UserPreferences interface. It defines all the preferences that can be set by a user; you can take a look at its sub-classes to see how preferences are persisted and check PreferredRichPresence for an example of how these preferences are used to tailor the rich presence. 2. Allow users to specify their own keyThis can be achieved by adding new text fields:
Some resourcesI do not know what is your technical background so here are a few resources that may be useful if you want to implement this:
If you have the time to implement a solution I would be glad to accept your contribution! I apologize for the long message but I preferred to be as comprehensive as possible. Feel free to ask any question if you face an issue or if the code is not clear enough. Regarding the default iconI wanted to show Eclipse IDE's icon by default but I do not have the rights to use it. Available logos can be checked here: I planned to contact the Eclipse Foundation to ask for their permission but I did not take the time to do it yet. |
I finally have some free time so I'm going to work on this. |
The feature is finally here 🎉 As of That's not that convenient but I believe that's the best we can do with current Discord's API. I am currently writing a more detailed documentation but in the meantime here is what must be done to customize the icons shown on Discord:
You can also set the setting per project. I know that it looks like a lot of steps but it's actually pretty quick to do; enjoy!
|
thanks ! |
The documentation is now online: Feel free to submit a new bug if you find it unclear so that I can improve it. |
I just sent an e-mail to I reopen the issue until then. |
Is it possible to change the basic language icons?
Is it possible to choose one icon per project?
If not, can you add this feature? Or explain where to add this to your code? I would be happy to do that.
And to add a default icon, at the moment, they is no icon:
The text was updated successfully, but these errors were encountered: