Discore
Show / Hide Table of Contents

Method DeleteWebhookWithToken

| Improve this Doc View Source

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

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