fetchWebhook abstract method

Future<IWebhook> 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<IWebhook> fetchWebhook(Snowflake id, {String token = ""});