fetchWebhook method

Future<Webhook> fetchWebhook(
  1. Snowflake id, {
  2. String token = "",
})

Gets a webhook by its id and/or token. If token is supplied authentication is not needed.

Implementation

Future<Webhook> fetchWebhook(Snowflake id, {String token = ""}) =>
    this.httpEndpoints.fetchWebhook(id, token: token);