Discore
Show / Hide Table of Contents

Method DeleteWebhook

| Improve this Doc View Source

DeleteWebhook(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
| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX