Table of Contents

Class WebhookProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll

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

name string
The 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

ImageProperties?

Name

The default name of the webhook.

[JsonPropertyName("name")]
public string Name { get; set; }

Property Value

string

Remarks

A webhook name is valid if:

  • The string length is between 1 and 80 characters.
  • It does not contain the substrings clyde or discord (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

avatar ImageProperties?

Returns

WebhookProperties

WithName(string)

The default name of the webhook.

public WebhookProperties WithName(string name)

Parameters

name string

Returns

WebhookProperties

Remarks

A webhook name is valid if:

  • The string length is between 1 and 80 characters.
  • It does not contain the substrings clyde or discord (case-insensitive).
  • It follows Discord's nickname guidelines, found here.