deps: update @discordjs/collection

This commit is contained in:
Elysia
2025-07-09 19:14:31 +07:00
parent c2fad20ed7
commit 16eab4e36b
3 changed files with 3 additions and 3 deletions

View File

@@ -582,7 +582,7 @@ class Util extends null {
*/
static discordSort(collection) {
const isGuildChannel = collection.first() instanceof GuildChannel;
return collection.sorted(
return collection.toSorted(
isGuildChannel
? (a, b) => a.rawPosition - b.rawPosition || Number(BigInt(a.id) - BigInt(b.id))
: (a, b) => a.rawPosition - b.rawPosition || Number(BigInt(b.id) - BigInt(a.id)),