Discore
Show / Hide Table of Contents

Method ModifyWebhookWithToken

| Improve this Doc View Source

ModifyWebhookWithToken(Snowflake, string, string?, DiscordImageData?)

Modifies an existing webhook.

Declaration
public Task ModifyWebhookWithToken(Snowflake webhookId, string token, string? name = null, DiscordImageData? avatar = null)
Parameters
Type Name Description
Snowflake webhookId
string token
string name
DiscordImageData avatar
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

ModifyWebhookWithToken(DiscordWebhook, string, string?, DiscordImageData?)

Modifies an existing webhook.

Declaration
public Task ModifyWebhookWithToken(DiscordWebhook webhook, string token, string? name = null, DiscordImageData? avatar = null)
Parameters
Type Name Description
DiscordWebhook webhook
string token
string name
DiscordImageData avatar
Returns
Type Description
Task
Exceptions
Type Condition
ArgumentException

Thrown if the token is empty or only contains whitespace characters.

ArgumentNullException

Thrown if webhook or token is null.

DiscordHttpApiException
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX