feat: Update Gateway Opcodes
This commit is contained in:
@@ -6,7 +6,7 @@ const { Events, Opcodes, Status } = require('../../../util/Constants');
|
||||
const run = (client, guild) => {
|
||||
if (!guild.large) return;
|
||||
client.ws.broadcast({
|
||||
op: Opcodes.LAZY_REQUEST,
|
||||
op: Opcodes.GUILD_SUBSCRIPTIONS,
|
||||
d: {
|
||||
guild_id: guild.id,
|
||||
typing: true,
|
||||
|
@@ -154,7 +154,7 @@ module.exports = async (client, { d: data }, shard) => {
|
||||
for (const guild of largeGuilds) {
|
||||
await client.sleep(client.options.messageCreateEventGuildTimeout);
|
||||
client.ws.broadcast({
|
||||
op: Opcodes.LAZY_REQUEST,
|
||||
op: Opcodes.GUILD_SUBSCRIPTIONS,
|
||||
d: {
|
||||
guild_id: guild.id,
|
||||
typing: true,
|
||||
|
Reference in New Issue
Block a user