Class WebhookProperties
Properties used to modify an IWebhook with the specified changes.
Namespace: Discord
Assembly: Discord.Net.Core.dll
Syntax
public class WebhookProperties : object
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
| Improve this Doc View SourceChannel
Gets or sets the channel for this webhook.
Declaration
public Optional<ITextChannel> Channel { get; set; }
Property Value
Type | Description |
---|---|
Optional<ITextChannel> |
Remarks
This field is not used when authenticated with Webhook.
ChannelId
Gets or sets the channel ID for this webhook.
Declaration
public Optional<ulong> ChannelId { get; set; }
Property Value
Type | Description |
---|---|
Optional<UInt64> |
Remarks
This field is not used when authenticated with Webhook.
Image
Gets or sets the default avatar of the webhook.
Declaration
public Optional<Image?> Image { get; set; }
Property Value
Type | Description |
---|---|
Optional<Nullable<Image>> |
Name
Gets or sets the default name of the webhook.
Declaration
public Optional<string> Name { get; set; }
Property Value
Type | Description |
---|---|
Optional<String> |