Kraigie / nostrum

Elixir Discord Library
https://kraigie.github.io/nostrum/
MIT License
608 stars 128 forks source link

Ensure user struct is casted properly before updating ets cache #610

Closed Th3-M4jor closed 2 months ago

Th3-M4jor commented 3 months ago

Discovered that the user cache did not always have a properly casted user struct after an update, this fixes that as well as makes it so that updated maps are merged in a way where missing values don't replace existing ones with nil