Releases: shadowplay1/discord-economy-super
Releases · shadowplay1/discord-economy-super
v1.7.7
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 inLeaderboardData
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
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 inRewardCooldownData
object of rewards result object. - BREAKING CHANGE: Renamed the
status
property toclaimed
in rewards result object so it will make sense. - Added a
getAll()
andclearAll()
toCooldownsManager
andgetAll()
to Cooldowns as they all were missing. - Added a
transfer()
method toCurrency
class. - Added monthly and hourly rewards! 🔥
Discord Economy Super v1.7.5
- 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 withquick-mongo-super
- Fixed the hard crash in JSON version when trying to claim
daily
,work
orweekly
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 yourpackage.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
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 inInventoryManager
to get the array of stacked items in the inventory. InventoryItem.stack()
is no longer async! You can run it insideArray.map()
safely now!UtilsManager.checkOptions()
method was renamed toUtilsManager.checkConfiguration()
so it could make sense.
Discord Economy Super v1.7.2
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
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
andcustomCurrencySubtract
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 thesubtractOnBuy
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
andclearWeekly
methods inCooldownItem
andCooldowns
classes to clear the specific cooldowns.
-
Added a
save()
method forShop-
,Inventory-
andHistory-
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-
andHistory-
items'itemObject
property was changed torawObject
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).
- Added the missing
buy()
method inShopItem
class. - Added the missing
clear()
method inItems
class. - Fixed return values in database operations methods.
Discord Economy Super v1.7.0
v1.7.0:
- Major bug/typings/JSDoc fixes!
- Fixed all the caching issues in MongoDB version!
- Added a
create()
methods inEconomyUser
andEconomyGuild
classes to match theUser-
andGuild-
managers. - Added a new
deposit()
method inBalance-
andBank-
managers and inBalance
andBank
user classes. - Added a
clearMany()
alias forclearSpecified()
method inCacheManager
.
Discord Economy Super v1.6.9
v1.6.9:
- Fixed bugs.
- Fixed typings bugs.
- Added missing JSDocs for
CacheManager
and all theCachedItem
s! - Added a configuration example in Initialation Example on the Examples page of the module.
Discord Economy Super v1.6.8
- 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 forupdateSpecified
method inCacheManager
.
Discord Economy Super v1.6.7
v1.6.7:
- Fixed leaderboard bugs.