Function serenity::http::get_guild_webhooks[][src]

pub fn get_guild_webhooks(guild_id: u64) -> Result<Vec<Webhook>>

Retrieves the webhooks for the given guild's Id.

This method requires authentication.

Examples

Retrieve all of the webhooks owned by a guild:

use serenity::http;

let guild_id = 81384788765712384;

let webhooks = http::get_guild_webhooks(guild_id)
    .expect("Error getting guild webhooks");