Method GetWebhookWithToken
| Improve this Doc View SourceGetWebhookWithToken(Snowflake, string)
Gets a webhook via its ID.
This call does not require authentication and returns no user in the webhook object.
Declaration
public Task<DiscordWebhook> GetWebhookWithToken(Snowflake webhookId, string token)
Parameters
| Type | Name | Description |
|---|---|---|
| Snowflake | webhookId | |
| string | token |
Returns
| Type | Description |
|---|---|
| Task<DiscordWebhook> |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown if the token is empty or only contains whitespace characters. |
| ArgumentNullException | Thrown if token is null. |
| DiscordHttpApiException |