Releases: shadowplay1/discord-economy-super
Releases · shadowplay1/discord-economy-super
Discord Economy Super v1.6.6
v1.6.6:
- Fixed the bug where
guildID
wasundefined
inEmptyEconomyUser
, resulting hard crashes on lots of methods (if the user was not found). - Removed unnecessary things.
Discord Economy Super v1.6.5
v1.6.5:
- Fixed the balance not caching correctly.
- Fixed the
INVALID_CACHE_ITEM_NAME
error in MongoDB version that caused a hard crash on anyRewardManager
method.
Discord Economy Super v1.6.4
v1.6.4:
- Bug fixes
- Typings fixes
Discord Economy Super v1.6.3
v1.6.3
- Major bug fixes
- Typings fixes
- Examples bug fixes
- Linting improvements
Discord Economy Super v1.6.2
- New
Empty-
classes forEconomyUser
andEconomyGuild
that will be returned if the user or guild does not exists - Added a new
exists
property forEconomyUser
andEconomyGuild
classes to check if the user/guild exists in database - Balance caching!
- Fixed bugs
- Major typings fixes
- Minor changes in documentation, JSDoc and in main README file
Discord Economy Super v1.6.1
See the full changelog here:
https://des-docs.js.org/#/docs/main/1.6.1/general/changelog
Discord Economy Super v1.5.1
- Fixed bugs.
- Added a 'ShopManager.add()' method as alias for 'InventoryManager.addItem()' method.
Discord Economy Super v1.5.1
- Fixed bugs.
- Fixed issues with InventoryManager.
Discord Economy Super v1.5.0
- Fixed bugs.
- Fixed typings.
- Fixed typos.
- Fixed issues with 'ShopManager.editItem()' method.
- Added a new 'changeElement' for the Database manager that will change the element's value in the array.
- Added a 'InventoryManager.use()' method as alias for 'InventoryManager.useItem()' method.
- Added a 'ShopManager.edit()' method as alias for 'ShopManager.editItem()' method.
- Important:
History related methods in ShopManager are now deprecated, but they won't be deleted.
If you want to use the newest history features and get all the bugfixes,
please switch to the new HistoryManager.
[!!!] No help and support will be provided for deprecated methods.
- ShopManager:
- ShopManager.history(memberID, guildID) [deprecated]
- ShopManager.clearHistory(memberID, guildID) [deprecated]
+ HistoryManager:
+ HistoryManager.fetch(memberID, guildID)
+ HistoryManager.clear(memberID, guildID)
+ HistoryManager.add(itemID, memberID, guildID) // the 'itemID' parameter is item ID from the shop \\\
+ HistoryManager.remove(memberID, guildID)
+ HistoryManager.find(id, memberID, guildID) // the 'id' parameter is the ID of the history object \\\
+ HistoryManager.search(id, memberID, guildID) // an alias for the method above ^ \\\
- Now you can use the random strings in a item message!
Syntax:[random="item1", "item2", "etc..."]
Example usage:
eco.shop.addItem('guildID', {
itemName: 'good-day',
price: 100,
message: 'What a [random="wonderful", "great", "sunny"] day!'
})
eco.shop.buy(1, 'memberID', 'guildID')
eco.shop.buy(1, 'memberID', 'guildID')
eco.shop.buy(1, 'memberID', 'guildID') // buying the item 3 times
eco.inventory.useItem(1, 'memberID', 'guildID') // What a wonderful day!
eco.inventory.useItem(1, 'memberID', 'guildID') // What a great day!
eco.inventory.useItem(1, 'memberID', 'guildID') // What a sunny day!
// In a returning string, [random="wonderful", "great", "sunny"]
// will be replaced with the any of
// the words "wonderful", "great" or "sunny".
Useful links:
https://des-docs.tk/#/docs/main/1.5.0/general/changelog
https://des-docs.tk/#/docs/main/1.5.0/general/updating
https://des-docs.tk/#/docs/main/1.5.0/general/faq
Discord Economy Super v1.4.9
- Fixed bugs.
- Fixed typings.
- Added a
savePurchasesHistory
constructor option that will indicate will the module save the purchases history or not. - The module will now send a message in console on startup if there's a problem with user's options object.