-
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
Add extension getter for cdn assets #37
Conversation
The test could be changed to update the user's avatar to a sample file (there are already test image files in the nyxx repository), and then remove it later/restore it to what it was before. In fact, what we can do is simply download the current avatar and then re-upload it from bytes. Something like this: final currentAvatar = (await client.user.get()).avatar;
await client.users.updateCurrentUser(UserUpdateBuilder(
avatar: ImageBuilder(data: await avatar.fetch(), format: currentAvatar.defaultFormat.extension),
)); This also indirectly serves as a test for |
Wow, why did GitHub close this? Reopening it... |
Gotta love gh stopwords |
FWIW this is still blocked until the next version of nyxx releases |
Description
Add a way to get the url of the asset without fetching it.
Test are failing because the CI bot doesnt have an avatar, and
CdnRequest
from nyxx doesn't forward qzery paramters .Type of change
Checklist:
dart analyze
ormake analyze
and fixed all issuesdart format --set-exit-if-changed -l 160 ./lib
ormake format
and fixed all issues