Table of Contents

Class WebhookProperties

Namespace
Discord
Assembly
Discord.Net.Core.dll

Properties used to modify an IWebhook with the specified changes.

public class WebhookProperties
Inheritance
WebhookProperties
Inherited Members

Examples

The following example uses ModifyAsync to apply changes specified in the properties,

await webhook.ModifyAsync(x =>
{
    x.Name = "very fast fox";
    x.ChannelId = newChannelId;
});

Properties

Channel

Gets or sets the channel for this webhook.

public Optional<ITextChannel> Channel { get; set; }

Property Value

Optional<ITextChannel>

Remarks

This field is not used when authenticated with Webhook.

ChannelId

Gets or sets the channel ID for this webhook.

public Optional<ulong> ChannelId { get; set; }

Property Value

Optional<ulong>

Remarks

This field is not used when authenticated with Webhook.

Image

Gets or sets the default avatar of the webhook.

public Optional<Image?> Image { get; set; }

Property Value

Optional<Image?>

Name

Gets or sets the default name of the webhook.

public Optional<string> Name { get; set; }

Property Value

Optional<string>

See Also