From fe4cfee02df76971d9e8791d8c0a54686b13d8bd Mon Sep 17 00:00:00 2001 From: Mishio595 Date: Wed, 5 Sep 2018 21:49:51 -0600 Subject: Change signature of EventHandler::message_update and the dispatch call to account for situations where the new message is not cached --- src/client/event_handler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/event_handler.rs') diff --git a/src/client/event_handler.rs b/src/client/event_handler.rs index 5af7314..741c79c 100644 --- a/src/client/event_handler.rs +++ b/src/client/event_handler.rs @@ -216,7 +216,7 @@ pub trait EventHandler { /// /// Provides the old message if available and the new message. #[cfg(feature = "cache")] - fn message_update(&self, _ctx: Context, _old_if_available: Option, _new: Message) {} + fn message_update(&self, _ctx: Context, _old_if_available: Option, _new: Option, _event: MessageUpdateEvent) {} /// Dispatched when a message is updated. /// -- cgit v1.2.3