qeled / discordie

Predictable JavaScript abstractions for Discord API.
https://qeled.github.io/discordie/
BSD 2-Clause "Simplified" License
190 stars 45 forks source link

Fix getMessages optional parameters #33

Closed abalabahaha closed 8 years ago

abalabahaha commented 8 years ago

Superagent encodes query({before: null}) as ?before=

Discord now tries to parse empty strings, resulting in "Value \"\" is not long."

I changed the before/after defaults to be undefined instead of null