Sur cette page
Breaking Changes
Ce contenu n’est pas encore disponible dans votre langue.
The v1.2 documentation is kept for projects that are still on v1.2. New projects should use v1.4.
These are the differences you meet when upgrading to v1.3 or later. For the full list, see the changelog.
connect()
Section titled “connect()”v1.2 logs { XP } Database Connected unless notify is false. From v1.3, it only logs when notify is true.
rank() and charts()
Section titled “rank() and charts()”v1.2 returns a discord.js MessageAttachment. From v1.3, both return a plain { attachment, name } object, which you can pass to files: [...] the same way.
charts()
Section titled “charts()”From v1.3, position is honoured. In v1.2 the chart always shows the top 5.
roleSetup.find()
Section titled “roleSetup.find()”From v1.3.4, roleSetup.find() returns every role set for the level, as an array, instead of only the first one.
Dependencies
Section titled “Dependencies”From v1.3, canvas and chart.js-image are replaced by @napi-rs/canvas and chart.js, so there is nothing to compile with node-gyp.