Skip to main content

msg_delete

Function msg_delete 

Source
pub async fn msg_delete(
    client: &ApiClient,
    channel: String,
    ts: String,
    yes: bool,
    non_interactive: bool,
) -> Result<ApiResponse, ApiError>
Expand description

Delete a message

§Arguments

  • client - API client
  • channel - Channel ID
  • ts - Message timestamp
  • yes - Skip confirmation prompt
  • non_interactive - Whether running in non-interactive mode

§Returns

  • Ok(ApiResponse) with deletion confirmation
  • Err(ApiError) if the operation fails