Skip to main content

⚠️ Breaking Changes

caution

connect() requires type as an option, especially if you plan on using SQLite.

create()

- xp.create(userId, guildId)
+ xp.create(userId, guildId, username)

charts()

- xp.charts(message, options);
+ xp.charts(guildId, options);

leaderboard()

- xp.leaderboard(client, guildId, limit);
+ xp.leaderboard(guildId, limit);

rank()

Migration AId

guild and user require objects, read the docs for more info

- xp.rank(client, message, options);
+ xp.rankCard(guild, user, options);

roleSetup

- xp.roleSetup.add(client, guildId, options);
+ xp.roleSetup.add(guildId, options);

- xp.roleSetup.fetch(client, guildId);
+ xp.roleSetup.list(guildId);

- xp.roleSetup.find(client, guildId, level);
+ xp.roleSetup.find(guildId, levelNumber);

- xp.roleSetup.remove(client, guildId, {level});
+ xp.roleSetup.remove(guildId, levelNumber);

levelUp Event

- client.on('levelUp', (message, data, role) => { ... });
+ xp.XpEvents.on({
+ levelUp: (data, newRoles) => {
+ // ...
+ },
+ });