diff options
| author | Zeyla Hellyer <[email protected]> | 2018-09-13 10:16:08 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2018-09-13 10:17:04 -0700 |
| commit | 60f84c687f7e58329f4df9722738be06e9b3bbc4 (patch) | |
| tree | 5ef72acab9edd482ae0cae22684b2f3435a98456 /src/client/event_handler.rs | |
| parent | Add tests for help (#387) (diff) | |
| download | serenity-60f84c687f7e58329f4df9722738be06e9b3bbc4.tar.xz serenity-60f84c687f7e58329f4df9722738be06e9b3bbc4.zip | |
Revert "Old message on update (#368)"
This reverts commit 27ccf2c9c8ce785b54595eaabcebf86db07bf5bc.
Diffstat (limited to 'src/client/event_handler.rs')
| -rw-r--r-- | src/client/event_handler.rs | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/client/event_handler.rs b/src/client/event_handler.rs index 5af7314..32fdaa1 100644 --- a/src/client/event_handler.rs +++ b/src/client/event_handler.rs @@ -212,18 +212,6 @@ pub trait EventHandler { /// Provides the channel's id and the deleted messages' ids. fn message_delete_bulk(&self, _ctx: Context, _channel_id: ChannelId, _multiple_deleted_messages_ids: Vec<MessageId>) {} - /// Dispatched when a message is updated. - /// - /// Provides the old message if available and the new message. - #[cfg(feature = "cache")] - fn message_update(&self, _ctx: Context, _old_if_available: Option<Message>, _new: Message) {} - - /// Dispatched when a message is updated. - /// - /// Provides the new data of the message. - #[cfg(not(feature = "cache"))] - fn message_update(&self, _ctx: Context, _new_data: MessageUpdateEvent) {} - /// Dispatched when a new reaction is attached to a message. /// /// Provides the reaction's data. @@ -239,6 +227,11 @@ pub trait EventHandler { /// Provides the channel's id and the message's id. fn reaction_remove_all(&self, _ctx: Context, _channel_id: ChannelId, _removed_from_message_id: MessageId) {} + /// Dispatched when a message is updated. + /// + /// Provides the new data of the message. + fn message_update(&self, _ctx: Context, _new_data: MessageUpdateEvent) {} + fn presence_replace(&self, _ctx: Context, _: Vec<Presence>) {} /// Dispatched when a user's presence is updated (e.g off -> on). |