-
-
Notifications
You must be signed in to change notification settings - Fork 167
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
fix(#957): support iconhash/image data variant fields #965
Conversation
✅ Deploy Preview for dpp-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
my only concern with this change is that it changes ALL iconhash, giving them ALL this new upload method, when only ONE icon in the entire of discord api supports this approach (guild banner). This seems to then portray to the user they can upload any icon this way (bot pfp, guild icon, etc) when they cant. There are also other api endpoints that support different methods of uploads (message creation, webhook creation - both these are massively different in the way they work with webhook being closest to what guild banner does here). |
Looking into the way theoretically a variant might work, the size of the icon type will be no larger than iconhash, because sizeof(iconhash) would be larger than sizeof(image_data). Therefore the only question remains is: how do we make it so that it doesnt seem to users like they could use the upload methods on a user pfp or something? Can we do something with a template and enable_if to directly flag uploadable fields and hide the methods elsewhere? |
No this doesn't change all iconhash. Iconhash is unchanged.
Not sure yet if i need to replace all iconhash fields wirh |
…lash, discovery splash
…age_data this fixes double free on copying a dpp::role with icon set
(please do not squash merge - many changes! 📈) |
When this is merged to dev, which examples in the dpp docs will need to be changed? |
From how this PR looks, no docs need to be changed. |
WIP fix for #957
Do not squash
Code change checklist