From ca4b0e32be531053f19ce2895b994130b247af4a Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Sat, 5 Oct 2024 18:02:12 -0600 Subject: Add sent-message cache for looking up command targets --- src/system/types.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/system/types.rs') diff --git a/src/system/types.rs b/src/system/types.rs index 483fbbd..89eb189 100644 --- a/src/system/types.rs +++ b/src/system/types.rs @@ -14,7 +14,7 @@ pub type Status = twilight_model::gateway::presence::Status; #[derive(Clone)] pub enum Message { - Complete(FullMessage), + Complete(FullMessage, MemberId), Partial(PartialMessage, MemberId), } @@ -31,7 +31,7 @@ pub enum SystemEvent { UpdateClientStatus(MemberId), // User event handling - NewMessage(Timestamp, FullMessage), + NewMessage(Timestamp, FullMessage, MemberId), EditedMessage(MessageEvent), NewReaction(ReactionEvent), -- cgit 1.4.1