[−][src]Function serenity::http::raw::get_webhook_with_token
pub fn get_webhook_with_token(webhook_id: u64, token: &str) -> Result<Webhook>
Retrieves a webhook given its Id and unique token.
This method does not require authentication.
Examples
Retrieve a webhook by Id and its unique token:
use serenity::http; let id = 245037420704169985; let token = "ig5AO-wdVWpCBtUUMxmgsWryqgsW3DChbKYOINftJ4DCrUbnkedoYZD0VOH1QLr-S3sV"; let webhook = http::get_webhook_with_token(id, token) .expect("Error getting webhook");