pub async fn send(msg: Message, owners: &Owners) -> Result<()> {
    let hook_chan: String = env_channel()?;
    send_internal(msg.clone(), hook_chan, owners).await?;
    let md = &msg.metadata;
    if let Some(chan) = &md.notifications {
        let c = chan.clone();
        send_internal(msg, c.to_string(), owners).await?;
    }
    Ok(())
}
/// Send a message based on a upgrade event
Send a message based on a upgrade event
Send a message based on a upgrade event
pub async fn send(msg: Message, owners: &Owners) -> Result<()> {
    let hook_chan: String = env_channel()?;
    send_internal(msg.clone(), hook_chan, owners).await?;
    let md = &msg.metadata;
    if let Some(chan) = &md.notifications {
        let c = chan.clone();
        send_internal(msg, c.to_string(), owners).await?;
    }
    Ok(())
}
pub async fn send ( msg : Message , owners : & Owners ) -> Result < ( ) > { let hook_chan : String = env_channel ( ) ? ; send_internal ( msg . clone ( ) , hook_chan , owners ) . await ? ; let md = & msg . metadata ; if let Some ( chan ) = & md . notifications { let c = chan . clone ( ) ; send_internal ( msg , c . to_string ( ) , owners ) . await ? ; } Ok ( ( ) ) }
Send a message based on a upgrade event
Send a message based on a upgrade event
msg
Message
owners
&Owners
msg
Message
owners
&Owners