From 39854144d8576dd118e952beb17d77686a03bec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?To=CF=80?= Date: Mon, 26 Jun 2023 15:54:32 +0200 Subject: [PATCH] remove member caching from typing & message reaction events --- handlers/message_reaction_handler.go | 4 ---- handlers/typing_start_handler.go | 2 -- 2 files changed, 6 deletions(-) diff --git a/handlers/message_reaction_handler.go b/handlers/message_reaction_handler.go index 2c563228e..7bed476de 100644 --- a/handlers/message_reaction_handler.go +++ b/handlers/message_reaction_handler.go @@ -9,10 +9,6 @@ import ( func gatewayHandlerMessageReactionAdd(client bot.Client, sequenceNumber int, shardID int, event gateway.EventMessageReactionAdd) { genericEvent := events.NewGenericEvent(client, sequenceNumber, shardID) - if event.Member != nil { - client.Caches().AddMember(*event.Member) - } - client.EventManager().DispatchEvent(&events.MessageReactionAdd{ GenericReaction: &events.GenericReaction{ GenericEvent: genericEvent, diff --git a/handlers/typing_start_handler.go b/handlers/typing_start_handler.go index c12e9e1b5..1a1994ee3 100644 --- a/handlers/typing_start_handler.go +++ b/handlers/typing_start_handler.go @@ -27,9 +27,7 @@ func gatewayHandlerTypingStart(client bot.Client, sequenceNumber int, shardID in var member discord.Member if event.Member != nil { member = *event.Member - client.Caches().AddMember(member) } - client.EventManager().DispatchEvent(&events.GuildMemberTypingStart{ GenericEvent: events.NewGenericEvent(client, sequenceNumber, shardID), ChannelID: event.ChannelID,