Class WebhookProperties
A set of properties representing a webhook's initial configuration.
public class WebhookProperties
- Inheritance
-
WebhookProperties
- Inherited Members
Constructors
WebhookProperties(string)
A set of properties representing a webhook's initial configuration.
public WebhookProperties(string name)
Parameters
namestringThe default name of the webhook.
Properties
Avatar
The ImageProperties for the default webhook avatar.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("avatar")]
public ImageProperties? Avatar { get; set; }
Property Value
Name
The default name of the webhook.
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
Remarks
A webhook name is valid if:
- The string length is between 1 and 80 characters.
-
It does not contain the substrings
clydeordiscord(case-insensitive). - It follows Discord's nickname guidelines, found here.
Methods
WithAvatar(ImageProperties?)
The ImageProperties for the default webhook avatar.
public WebhookProperties WithAvatar(ImageProperties? avatar)
Parameters
avatarImageProperties?
Returns
WithName(string)
The default name of the webhook.
public WebhookProperties WithName(string name)
Parameters
namestring
Returns
Remarks
A webhook name is valid if:
- The string length is between 1 and 80 characters.
-
It does not contain the substrings
clydeordiscord(case-insensitive). - It follows Discord's nickname guidelines, found here.