twilight-rs / twilight

Powerful, flexible, and scalable ecosystem of Rust libraries for the Discord API.
https://discord.gg/twilight-rs
ISC License
673 stars 132 forks source link

fix(http): fix get invite query params #2256

Closed Jack073 closed 1 year ago

Jack073 commented 1 year ago

Currently the GetInvite with_counts() and with_expiration() don't work as the query string they append uses - instead of _ in the keys, as specified in the API docs - https://discord.com/developers/docs/resources/invite#get-invite-query-string-params.

Jack073 commented 1 year ago

Apologies for adding a commit after, I just saw that as well when I was playing with my bot.