Closed tibue99 closed 2 months ago
The exclude_ended attribute threw an error, because yarl does not support boolean params. I don't know how to fix that, so I just set it to None for now. Perhaps @plun1331 can help
Casting it to a string in the http method should be good enough
Edit: other methods have cast it to int
Timo for the win. Thank you
Have the latest changes been tested?
Have the latest changes been tested?
I have tested client.entitlements()
in production, but I have not tested the user/guild methods separately.
Summary
This PR fixes some issues with monetization.
1) Premium buttons do not work with a custom ID, I disabled the auto-generated custom_id for premium buttons 2)
bot.fetch_entitlements()
did not work when certain parameters were not set 3) Theexclude_ended
attribute threw an error, because yarl does not support boolean params. I don't know how to fix that, so I just set it toNone
for now. Perhaps @plun1331 can helpI have tested the changes with a monetized Discord bot.
Edit: This PR now renames
client.fetch_entitlements
toclient.entitlements
.Information
Checklist
type: ignore
comments were used, a comment is also left explaining why.