feat: Update Gateway Opcodes

This commit is contained in:
Elysia
2023-02-16 11:55:35 +07:00
parent e683819cf0
commit c4abe27694
4 changed files with 16 additions and 7 deletions

View File

@@ -556,7 +556,7 @@ class GuildMemberManager extends CachedManager {
if (type == 'INVALIDATE' && offset > 100) {
if (retry < retryMax) {
this.guild.shard.send({
op: Opcodes.LAZY_REQUEST,
op: Opcodes.GUILD_SUBSCRIPTIONS,
d: {
guild_id: this.guild.id,
typing: true,
@@ -594,7 +594,7 @@ class GuildMemberManager extends CachedManager {
this.client.incrementMaxListeners();
this.client.on(Events.GUILD_MEMBER_LIST_UPDATE, handler);
this.guild.shard.send({
op: Opcodes.LAZY_REQUEST,
op: Opcodes.GUILD_SUBSCRIPTIONS,
d: {
guild_id: this.guild.id,
typing: true,