Skip to main content

send_webhook_text

Function send_webhook_text 

Source
pub async fn send_webhook_text(
    http: &Client,
    url: &str,
    text: &str,
) -> Result<(), String>
Expand description

Post a plain-text message to a Slack/Discord/generic incoming webhook. Sends both text (Slack) and content (Discord) so one URL fits either service. Returns Ok(()) only on a 2xx response.