Skip to content

Releases: shadowplay1/discord-economy-super

v1.7.7

03 Jun 18:42
Compare
Choose a tag to compare

v1.7.7:

  • Fixed JSDoc typos/mismatches.
  • Fixed and improved typings.
  • Code optimization.
  • Examples improvements.
  • Added custom currencies leaderboard.
  • Fixed currencies key appearing in core leaderboard object in some instances.
  • Added the currencyUsed property in all objects that contain the purchase information.
  • Added the index property in LeaderboardData object which determines the position of the user in leaderboard.
  • Fixed a bug where creating the same custom currency more than once will result in error.
  • Fixed a bug when the balance will be set to null if any balance addition/subtraction was performed in newly created database.
  • ...and many more!

Full Changelog: v1.7.6...v1.7.7

Discord Economy Super v1.7.6

19 Mar 02:42
Compare
Choose a tag to compare

v1.7.6:

  • Fixed TONS of bugs.
  • Fixed JSDoc typos/mismatches.
  • Fixed typings.
  • Removed unnecessary things.
  • Code optimization.
  • Added the endTimestamp property to the cooldown object in RewardCooldownData object of rewards result object.
  • BREAKING CHANGE: Renamed the status property to claimed in rewards result object so it will make sense.
  • Added a getAll() and clearAll() to CooldownsManager and getAll() to Cooldowns as they all were missing.
  • Added a transfer() method to Currency class.
  • Added monthly and hourly rewards! 🔥

Discord Economy Super v1.7.5

25 Feb 03:42
27f0762
Compare
Choose a tag to compare
  • Fixed JSDoc typos/mismatches.
  • Removed the ./examples directory from publishing on NPM to reduce the package size (they are still available on github)
  • Removed node-fetch from dependencies list as it's already bundled with quick-mongo-super
  • Fixed the hard crash in JSON version when trying to claim daily, work or weekly rewards.
  • Fixed the INVALID_TYPE error when getting the currencies by ID.
  • Updated the documentation - updated the FAQ, added shop examples and more explanations of the code on Examples page in the documentation + added the Configuring Economy page that explains everything about configuring the module and Custom Item Data page explaining the custom property - check them out!
  • Minor bug fixes.
  • Added an option for package.json to disable the post-install greeting logs. To disable them, you need to add this in your package.json:
"discord-economy-super": {
    "postinstall": false
}

To enable them back, you need to set the "postinstall" property of "discord-economy-super" object to true:

"discord-economy-super": {
    "postinstall": true
}

(or simply remove this object from your package.json)

Discord Economy Super v1.7.4

03 Jan 00:46
97e3a82
Compare
Choose a tag to compare

v1.7.4:

  • Fixed typings.
  • JSDoc changes.
  • Fixed the missing configuration bug and hard crash on startup.
  • Removed unnecessary things.
  • Updated EconomyItems files.
  • Added a stacked() method in InventoryManager to get the array of stacked items in the inventory.
  • InventoryItem.stack() is no longer async! You can run it inside Array.map() safely now!
  • UtilsManager.checkOptions() method was renamed to UtilsManager.checkConfiguration() so it could make sense.

Discord Economy Super v1.7.2

01 Jan 20:33
c82784b
Compare
Choose a tag to compare

v1.7.2:

  • Code refactoring.
  • Major bug fixes.
  • Fixed a hard crash on startup in JSON version.
  • Fixed JSDocs.
  • Fixed typings in some managers.
  • Improved debugging.

Discord Economy Super v1.7.1

31 Dec 18:42
f1e8b84
Compare
Choose a tag to compare

v1.7.1:

  • Major bug fixes!
  • Major typings fixes!
  • Major JSDoc fixes!
  • Improved error handling and debugging.
  • Update checker fixes.
  • Fixed broken inventory cache issue on startup in MongoDB version!

  • Custom currencies system! 🔥
  • Added a new customCurrencySet, customCurrencyAdd and customCurrencySubtract events so the changes in any custom currencies could be tracked!
  • Added a new optional currency argument in all item buying methods that takes eaither currency ID, name or its symbol so the currency balance will be subtracted instead of core balance. Requires the subtractOnBuy option to be enabled.

  • Added a stack() method for inventory items that returns the number of specific item (quantity) and the total price of it in the inventory!
  • Added a new clearDaily, clearWork and clearWeekly methods in CooldownItem and Cooldowns classes to clear the specific cooldowns.

  • Added a save() method for Shop-, Inventory- and History- items that allows you to edit the item's object properties save the edited objext in database!

  • Added a .toString() method for some classes.

  • Shop-, Inventory- and History- items' itemObject property was changed to rawObject so it could make sense in the code

  • Now a warning will be displayed in console if using a dev version in both MongoDB and JSON versions (see the screenshot below).

Development Version Usage Warning

  • Added the missing buy() method in ShopItem class.
  • Added the missing clear() method in Items class.
  • Fixed return values in database operations methods.

Discord Economy Super v1.7.0

17 Nov 22:11
27ca8ef
Compare
Choose a tag to compare

v1.7.0:

  • Major bug/typings/JSDoc fixes!
  • Fixed all the caching issues in MongoDB version!
  • Added a create() methods in EconomyUser and EconomyGuild classes to match the User- and Guild- managers.
  • Added a new deposit() method in Balance- and Bank- managers and in Balance and Bank user classes.
  • Added a clearMany() alias for clearSpecified() method in CacheManager.

Discord Economy Super v1.6.9

25 Oct 05:11
b792f3c
Compare
Choose a tag to compare

v1.6.9:

  • Fixed bugs.
  • Fixed typings bugs.
  • Added missing JSDocs for CacheManager and all the CachedItems!
  • Added a configuration example in Initialation Example on the Examples page of the module.

Discord Economy Super v1.6.8

24 Oct 22:29
d3f0498
Compare
Choose a tag to compare
  • Fixed bugs.
  • Fixed typings bugs.
  • Bank balance caching!
  • Fixed the hard crash in MongoDB version when trying to obtain a balance data for the user from the cache.
  • Added an updateMany alias for updateSpecified method in CacheManager.

Discord Economy Super v1.6.7

20 Sep 20:02
f380876
Compare
Choose a tag to compare

v1.6.7:

  • Fixed leaderboard bugs.