deps: update @discordjs/collection
This commit is contained in:
@@ -52,7 +52,7 @@
|
|||||||
"homepage": "https://github.com/aiko-chan-ai/discord.js-selfbot-v13#readme",
|
"homepage": "https://github.com/aiko-chan-ai/discord.js-selfbot-v13#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@discordjs/builders": "^1.6.3",
|
"@discordjs/builders": "^1.6.3",
|
||||||
"@discordjs/collection": "^1.5.3",
|
"@discordjs/collection": "^2.1.1",
|
||||||
"@sapphire/async-queue": "^1.5.5",
|
"@sapphire/async-queue": "^1.5.5",
|
||||||
"@sapphire/shapeshift": "^3.9.5",
|
"@sapphire/shapeshift": "^3.9.5",
|
||||||
"discord-api-types": "^0.37.117",
|
"discord-api-types": "^0.37.117",
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ const Messages = {
|
|||||||
SLASH_COMMAND_REQUIRED_OPTIONS_MISSING: (req, opt) => `Value required (${req}) missing (Options: ${opt})`,
|
SLASH_COMMAND_REQUIRED_OPTIONS_MISSING: (req, opt) => `Value required (${req}) missing (Options: ${opt})`,
|
||||||
SLASH_COMMAND_SUB_COMMAND_GROUP_INVALID: n => `${n} is not a valid sub command group`,
|
SLASH_COMMAND_SUB_COMMAND_GROUP_INVALID: n => `${n} is not a valid sub command group`,
|
||||||
SLASH_COMMAND_SUB_COMMAND_INVALID: n => `${n} is not a valid sub command`,
|
SLASH_COMMAND_SUB_COMMAND_INVALID: n => `${n} is not a valid sub command`,
|
||||||
INTERACTION_FAILED: 'No responsed from Application Command',
|
INTERACTION_FAILED: 'No responsed from Application',
|
||||||
USER_NOT_STREAMING: 'User is not streaming',
|
USER_NOT_STREAMING: 'User is not streaming',
|
||||||
BULK_BAN_USERS_OPTION_EMPTY: 'Option "users" array or collection is empty',
|
BULK_BAN_USERS_OPTION_EMPTY: 'Option "users" array or collection is empty',
|
||||||
|
|
||||||
|
|||||||
@@ -582,7 +582,7 @@ class Util extends null {
|
|||||||
*/
|
*/
|
||||||
static discordSort(collection) {
|
static discordSort(collection) {
|
||||||
const isGuildChannel = collection.first() instanceof GuildChannel;
|
const isGuildChannel = collection.first() instanceof GuildChannel;
|
||||||
return collection.sorted(
|
return collection.toSorted(
|
||||||
isGuildChannel
|
isGuildChannel
|
||||||
? (a, b) => a.rawPosition - b.rawPosition || Number(BigInt(a.id) - BigInt(b.id))
|
? (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)),
|
: (a, b) => a.rawPosition - b.rawPosition || Number(BigInt(b.id) - BigInt(a.id)),
|
||||||
|
|||||||
Reference in New Issue
Block a user