Skip to content

Releases: shadowplay1/discord-economy-super

Discord Economy Super v1.6.6

05 Sep 20:17
61ad0d4
Compare
Choose a tag to compare

v1.6.6:

  • Fixed the bug where guildID was undefined in EmptyEconomyUser, resulting hard crashes on lots of methods (if the user was not found).
  • Removed unnecessary things.

Discord Economy Super v1.6.5

31 Aug 23:07
85124b3
Compare
Choose a tag to compare

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 any RewardManager method.

Discord Economy Super v1.6.4

30 Aug 17:44
195d79a
Compare
Choose a tag to compare

v1.6.4:

  • Bug fixes
  • Typings fixes

Discord Economy Super v1.6.3

16 Aug 13:51
9f7421c
Compare
Choose a tag to compare

v1.6.3

  • Major bug fixes
  • Typings fixes
  • Examples bug fixes
  • Linting improvements

Discord Economy Super v1.6.2

11 Aug 21:17
6aa788c
Compare
Choose a tag to compare
  • New Empty- classes for EconomyUser and EconomyGuild that will be returned if the user or guild does not exists
  • Added a new exists property for EconomyUser and EconomyGuild 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

24 Jul 00:35
54b9f99
Compare
Choose a tag to compare

Discord Economy Super v1.5.1

11 Dec 17:30
0f72191
Compare
Choose a tag to compare
  • Fixed bugs.
  • Added a 'ShopManager.add()' method as alias for 'InventoryManager.addItem()' method.

Discord Economy Super v1.5.1

10 Dec 21:56
55a3828
Compare
Choose a tag to compare
  • Fixed bugs.
  • Fixed issues with InventoryManager.

Discord Economy Super v1.5.0

09 Dec 19:43
b0727cc
Compare
Choose a tag to compare
  • 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

04 Dec 22:52
340c6ab
Compare
Choose a tag to compare
  • 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.