feat: update (see description)
- Remove `bignumber.js` - Fix `circular dependency` - Fix: missing activity.name (SpotifyRPC) - Refactor code - Update UserAgent
This commit is contained in:
@@ -1026,6 +1026,9 @@ class Client extends BaseClient {
|
||||
}
|
||||
break;
|
||||
case 'nopecha': {
|
||||
if (options.captchaKey.length !== 16) {
|
||||
throw new TypeError('CLIENT_INVALID_OPTION', 'captchaKey', 'a 16 character string');
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@@ -144,8 +144,8 @@ class WebSocketManager extends EventEmitter {
|
||||
});
|
||||
const recommendedShards = 1;
|
||||
const sessionStartLimit = {
|
||||
total: 1000000000,
|
||||
remaining: 1000000000,
|
||||
total: Infinity,
|
||||
remaining: Infinity,
|
||||
};
|
||||
|
||||
const { total, remaining } = sessionStartLimit;
|
||||
|
@@ -710,7 +710,7 @@ class WebSocketShard extends EventEmitter {
|
||||
this.debug(
|
||||
`[IDENTIFY] Shard ${this.id}/${client.options.shardCount} with intents: ${Intents.resolve(
|
||||
client.options.intents,
|
||||
)} :)`,
|
||||
)} 😊`,
|
||||
);
|
||||
this.send({ op: Opcodes.IDENTIFY, d }, true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user