r-anime / misato

💬 Mod bot for the /r/anime Discord
MIT License
6 stars 7 forks source link

Handle Discord structures returned from API routes better #200

Closed eritbh closed 2 years ago

eritbh commented 2 years ago

API now only returns the information the frontend relies on to make things faster. API also now tries to fetch the user property of requested member objects even if the member can't be found (id will not be present on the member object, but user will be).

Works around https://github.com/r-anime/misato-frontend/issues/2 - the issue is fixed as long as the API works, but leaving that open because really that frontend component needs to be done better anyway.

eritbh commented 2 years ago

This also fixes #169