andersfylling / disgord

Go module for interacting with the documented Discord's bot interface; Gateway, REST requests and voice
BSD 3-Clause "New" or "Revised" License
497 stars 70 forks source link

Add config options DisableMemberTracking and DisableUserTracking #195

Closed andersfylling closed 4 years ago

andersfylling commented 5 years ago

Is your feature request related to a problem? Please describe. the number of members and users can be extremely large and cause bots to crash due to memory constraints. This will allow the flexibility to not save users and/or members.

Describe the solution you'd like Caching should respect these options and not store anything when activated. Which means by default, everything should be stored, which also means all members should be loaded into the cache on startup.

andersfylling commented 4 years ago

this is done through LFU settings, for the default cache