Method DeleteWebhookWithToken
| Improve this Doc View SourceDeleteWebhookWithToken(Snowflake, string)
Deletes a webhook permanently.
Declaration
public Task DeleteWebhookWithToken(Snowflake webhookId, string token)
Parameters
| Type | Name | Description |
|---|---|---|
| Snowflake | webhookId | |
| string | token |
Returns
| Type | Description |
|---|---|
| Task |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown if the token is empty or only contains whitespace characters. |
| ArgumentNullException | Thrown if token is null. |
| DiscordHttpApiException |
DeleteWebhookWithToken(DiscordWebhook, string)
Deletes a webhook permanently.
Declaration
public Task DeleteWebhookWithToken(DiscordWebhook webhook, string token)
Parameters
| Type | Name | Description |
|---|---|---|
| DiscordWebhook | webhook | |
| string | token |
Returns
| Type | Description |
|---|---|
| Task |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown if the token is empty or only contains whitespace characters. |
| ArgumentNullException | Thrown if token is null. |
| DiscordHttpApiException |