Top-gg-Community / dotnet-sdk

MIT License
32 stars 11 forks source link

Create catcher for JSON errors (#5) #12

Closed AbnerSquared closed 4 years ago

AbnerSquared commented 4 years ago

Hoping I did this correctly (first pull request). This should now gracefully catch whenever a JSON request returns empty. If wanted, this can now be passed on through each request to give the user the ability to handle when an error occurs. As of now, it returns the default value of the object requested on error. As a side note, I also slightly cleaned up some of the code presented in DiscordBotListApi.cs.

velddev commented 4 years ago

Looks good!