fetchWebhook abstract method

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

Fetches webhook using its id and optionally token. If token is specified it will be used to fetch webhook data. If not authenticated or missing permissions for given webhook token can be used.

Implementation

Future<IWebhook> fetchWebhook(Snowflake id, {String token = ""});