Search Results for

    Show / Hide Table of Contents

    Class WebhookProperties

    Properties used to modify an IWebhook with the specified changes.

    Inheritance
    Object
    WebhookProperties
    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 Source

    Channel

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    Image

    Gets or sets the default avatar of the webhook.

    Declaration
    public Optional<Image?> Image { get; set; }
    Property Value
    Type Description
    Optional<Nullable<Image>>
    | Improve this Doc View Source

    Name

    Gets or sets the default name of the webhook.

    Declaration
    public Optional<string> Name { get; set; }
    Property Value
    Type Description
    Optional<String>

    See Also

    ModifyAsync(Action<WebhookProperties>, RequestOptions)

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2023 3.12.0