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

pub fn get_channel_webhooks(channel_id: u64) -> Result<Vec<Webhook>>

Retrieves the webhooks for the given channel's Id.

This method requires authentication.

Examples

Retrieve all of the webhooks owned by a channel:

use serenity::http;

let channel_id = 81384788765712384;

let webhooks = http::get_channel_webhooks(channel_id)
    .expect("Error getting channel webhooks");