[][src]Function serenity::http::raw::delete_webhook_with_token

pub fn delete_webhook_with_token(webhook_id: u64, token: &str) -> Result<()>

Deletes a Webhook given its Id and unique token.

This method does not require authentication.

Examples

Deletes a webhook given its Id and unique token:

use serenity::http;

let id = 245037420704169985;
let token = "ig5AO-wdVWpCBtUUMxmgsWryqgsW3DChbKYOINftJ4DCrUbnkedoYZD0VOH1QLr-S3sV";

http::delete_webhook_with_token(id, token).expect("Error deleting webhook");