Method DeleteWebhook
| Improve this Doc View SourceDeleteWebhook(Snowflake)
Deletes a webhook permanently. The current bot must be the owner.
Requires ManageWebhooks.
Declaration
public Task DeleteWebhook(Snowflake webhookId)
Parameters
| Type | Name | Description |
|---|---|---|
| Snowflake | webhookId |
Returns
| Type | Description |
|---|---|
| Task |
Exceptions
| Type | Condition |
|---|---|
| DiscordHttpApiException |
DeleteWebhook(DiscordWebhook)
Deletes a webhook permanently. The current bot must be the owner.
Requires ManageWebhooks.
Declaration
public Task DeleteWebhook(DiscordWebhook webhook)
Parameters
| Type | Name | Description |
|---|---|---|
| DiscordWebhook | webhook |
Returns
| Type | Description |
|---|---|
| Task |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | |
| DiscordHttpApiException |