2. Websocket not send Intents
https://www.reddit.com/r/Discord_selfbots/comments/tq6dyp/comment/i2fkk55/?utm_source=share&utm_medium=web2x&context=3
This commit is contained in:
parent
ab113790e3
commit
c8598a36d5
@ -13,7 +13,7 @@ let zlib;
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
zlib = require('zlib-sync');
|
zlib = require('zlib-sync');
|
||||||
} catch {} // eslint-disable-line no-empty
|
} catch { } // eslint-disable-line no-empty
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a Shard's WebSocket connection
|
* Represents a Shard's WebSocket connection
|
||||||
@ -487,8 +487,7 @@ class WebSocketShard extends EventEmitter {
|
|||||||
() => {
|
() => {
|
||||||
this.debug(
|
this.debug(
|
||||||
`Shard ${hasGuildsIntent ? 'did' : 'will'} not receive any more guild packets` +
|
`Shard ${hasGuildsIntent ? 'did' : 'will'} not receive any more guild packets` +
|
||||||
`${hasGuildsIntent ? ` in ${waitGuildTimeout} ms` : ''}.\nUnavailable guild count: ${
|
`${hasGuildsIntent ? ` in ${waitGuildTimeout} ms` : ''}.\nUnavailable guild count: ${this.expectedGuilds.size
|
||||||
this.expectedGuilds.size
|
|
||||||
}`,
|
}`,
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -610,7 +609,7 @@ class WebSocketShard extends EventEmitter {
|
|||||||
// Clone the identify payload and assign the token and shard info
|
// Clone the identify payload and assign the token and shard info
|
||||||
const d = {
|
const d = {
|
||||||
...client.options.ws,
|
...client.options.ws,
|
||||||
intents: Intents.resolve(client.options.intents),
|
// intents: Intents.resolve(client.options.intents), // Remove, Req by dolfies_person [Reddit]
|
||||||
token: client.token,
|
token: client.token,
|
||||||
shard: [this.id, Number(client.options.shardCount)],
|
shard: [this.id, Number(client.options.shardCount)],
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user