Method ModifyWebhookWithToken
| Improve this Doc View SourceModifyWebhookWithToken(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 |
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 |
| DiscordHttpApiException |