NachoToast / LSB-Discord-Bot

Personal utility Discord bot for the LSB server.
Creative Commons Attribution Share Alike 4.0 International
0 stars 0 forks source link

Better Default Object Assigning #36

Open NachoToast opened 2 years ago

NachoToast commented 2 years ago

Currently when we get objects like guildConfig and economyUsers, we compare them with the 'default' object (in the types folder) so make sure they are up-to-date, since fields can be added between versions.

The current way this is done is problematic, as it only copies 1-layer deep and doesn't work for complex data types like nested objects, arrays, etc...