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

pub fn get_webhook(webhook_id: u64) -> Result<Webhook>

Retrieves a webhook given its Id.

This method requires authentication, whereas get_webhook_with_token does not.

Examples

Retrieve a webhook by Id:

use serenity::http;

let id = 245037420704169985;
let webhook = http::get_webhook(id).expect("Error getting webhook");