This feature was removed in the development and migration to the entirely different MongoDB schema that took place in May 2024. This feature could be re-implemented, this time more efficiently, and with extra features.
Potential solution
Rename the Preferences document to something more appropriate such as "UserServerData".
Move all preference fields into a new "Preferences" basemodel.
Create a Wins basemodel that has fields for each type of leaderboard (except all-time as a win system isn't appropriate for that).
Update document if user wins for a specific leaderboard in a server.
Create logic to sort based on wins, and create new command param.
Description
This feature was removed in the development and migration to the entirely different MongoDB schema that took place in May 2024. This feature could be re-implemented, this time more efficiently, and with extra features.
Potential solution
Rename thePreferences
document to something more appropriate such as "UserServerData".Move all preference fields into a new "Preferences" basemodel.Create aWins
basemodel that has fields for each type of leaderboard (exceptall-time
as a win system isn't appropriate for that).Update document if user wins for a specific leaderboard in a server.Migrate to the new schema.