pub async fn handle_edit(ctx: &Context, event: &MessageUpdateEvent) {
    if !is_reported(ctx, event.id.0).await {
        return;
    }
    let db = ctx.get_db().await;
    let voting_event = db.get_voting_event_for_message(event.id.0).await.unwrap();
    db.add_edit_event(event.to_owned(), voting_event.vote_message_id)
        .await
        .unwrap();
    update_voting_message(ctx, voting_event.vote_message_id as u64).await;
}
/// This handles a message_changed event an checks for
/// reported messages that are edited. It then updates the message on the
/// moderation channel with the message's new content and the time of the edit.
///
/// (Due to discord limitations the maximum number of logged edits is 9 after which they will no
/// longer be logged)
// NOTE: This could become a problem in which case a workaround can be implemented
This handles a message_changed event an checks for
reported messages that are edited. It then updates the message on the
moderation channel with the message's new content and the time of the edit.

(Due to discord limitations the maximum number of logged edits is 9 after which they will no
longer be logged)
NOTE: This could become a problem in which case a workaround can be implemented
This handles a message_changed event an checks for reported messages that are edited . It then updates the message on the moderation channel with the message ' s new content and the time of the edit . ( Due to discord limitations the maximum number of logged edits is 9 after which they will no longer be logged ) NOTE : This could become a problem in which case a workaround can be implemented
pub async fn handle_edit(ctx: &Context, event: &MessageUpdateEvent) {
    if !is_reported(ctx, event.id.0).await {
        return;
    }
    let db = ctx.get_db().await;
    let voting_event = db.get_voting_event_for_message(event.id.0).await.unwrap();
    db.add_edit_event(event.to_owned(), voting_event.vote_message_id)
        .await
        .unwrap();
    update_voting_message(ctx, voting_event.vote_message_id as u64).await;
}
pub async fn handle_edit ( ctx : & Context , event : & MessageUpdateEvent ) { if ! is_reported ( ctx , event . id . 0 ) . await { return ; } let db = ctx . get_db ( ) . await ; let voting_event = db . get_voting_event_for_message ( event . id . 0 ) . await . unwrap ( ) ; db . add_edit_event ( event . to_owned ( ) , voting_event . vote_message_id ) . await . unwrap ( ) ; update_voting_message ( ctx , voting_event . vote_message_id as u64 ) . await ; }
This handles a message_changed event an checks for
reported messages that are edited.
This handles a message_changed event an checks for reported messages that are edited .
ctx
&Context
event
&MessageUpdateEvent
ctx
&Context
event
&MessageUpdateEvent