krisppurg / dimscord

A Discord Bot & REST Library for Nim.
https://krisppurg.github.io/dimscord/
MIT License
222 stars 22 forks source link

Use treeform's jsony for rewriting objects #32

Closed krisppurg closed 1 year ago

krisppurg commented 3 years ago

If a field is null or simply doesn't exist it will get an internal fatal crash. However we could actually use marshal for this since, it does not crash.

ghost commented 3 years ago

Please don't - marshal uses Nim RTTI and it makes binaries larger :) Maybe look into nim-json-serialization by Status instead?

krisppurg commented 3 years ago

Okay.

krisppurg commented 3 years ago

Renamed title.

krisppurg commented 3 years ago

So, since the files are starting to get bigger as Discord's API starts to expand more, I might as well use that serialization and modify it in the future.

krisppurg commented 3 years ago

Closing this, as not much activity.

krisppurg commented 2 years ago

Currently rewriting objects with jsony, making dimscord run more efficiently and to minimise file size of objects

krisppurg commented 1 year ago

I believe all of the objects are all now replaced with jsony.