aoijs / aoi.js

aoi.js - The most advanced string-based package to create a Discord Bot fast and powerful.
https://aoi.js.org
Apache License 2.0
329 stars 130 forks source link

Bug: $globalUserLeaderboard broken in v6.8 #587

Closed Vishvaas06 closed 3 months ago

Vishvaas06 commented 3 months ago

Bug Type

Function

Bugged Function

module.exports = [{
name: "leaderboard",
type: "interaction",
prototype: "slash",
code: `
$InteractionFollowUp[{newEmbed:{title:Global Leaderboard}{description:$globalUserLeaderBoard[time;desc;{top}) {username};10;1;capsule]}{color:#0a9afa}}{actionRow:{button:Next:1:lb1:false:1227352256471502919}}]
$InteractionDefer[false]
`}]

Version of aoi.js

v6.8

Version of Node.js

v16.11.0 (Lowest)

Excepted Output

No response

Relevant log output

No response

Code of Conduct

Faf4a commented 3 months ago

Can you define broken? @Vishvaas06

Vishvaas06 commented 3 months ago

It's fixed in github version though but here broken means that it arranges the leaderboard randomly

Faf4a commented 3 months ago

That's the fault on aoi.db's side as it uses the sort() function from there

cc @USERSATOSHI

USERSATOSHI commented 3 months ago

has been fixed on db side on github