Search Results for

    Show / Hide Table of Contents

    Class RestWebhook

    Inheritance
    Object
    RestEntity<UInt64>
    RestWebhook
    Implements
    IEntity<UInt64>
    IWebhook
    IDeletable
    ISnowflakeEntity
    IEntity<UInt64>
    IUpdateable
    Inherited Members
    RestEntity<UInt64>.Id
    Namespace: Discord.Rest
    Assembly: Discord.Net.Rest.dll
    Syntax
    public class RestWebhook : RestEntity<ulong>, IEntity<ulong>, IWebhook, IDeletable, ISnowflakeEntity, IEntity<ulong>, IUpdateable

    Properties

    | Improve this Doc View Source

    ApplicationId

    Declaration
    public ulong? ApplicationId { get; }
    Property Value
    Type Description
    Nullable<UInt64>
    | Improve this Doc View Source

    AvatarId

    Declaration
    public string AvatarId { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    ChannelId

    Declaration
    public ulong? ChannelId { get; }
    Property Value
    Type Description
    Nullable<UInt64>
    | Improve this Doc View Source

    CreatedAt

    Declaration
    public DateTimeOffset CreatedAt { get; }
    Property Value
    Type Description
    DateTimeOffset
    | Improve this Doc View Source

    Creator

    Gets the user that created this webhook.

    Declaration
    public IUser Creator { get; }
    Property Value
    Type Description
    IUser
    | Improve this Doc View Source

    FollowedChannelId

    Gets the id of the followed channel. null if Type is not ChannelFollower.

    Declaration
    public ulong? FollowedChannelId { get; }
    Property Value
    Type Description
    Nullable<UInt64>
    | Improve this Doc View Source

    FollowedChannelName

    Gets the name of the followed channel. null if Type is not ChannelFollower.

    Declaration
    public string FollowedChannelName { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    GuildId

    Declaration
    public ulong? GuildId { get; }
    Property Value
    Type Description
    Nullable<UInt64>
    | Improve this Doc View Source

    Name

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    PartialGuild

    Gets the partial guild of the followed channel. null if Type is not ChannelFollower.

    Declaration
    public PartialGuild PartialGuild { get; }
    Property Value
    Type Description
    PartialGuild
    | Improve this Doc View Source

    Token

    Declaration
    public string Token { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Type

    Gets the type of this webhook.

    Declaration
    public WebhookType Type { get; }
    Property Value
    Type Description
    WebhookType

    Methods

    | Improve this Doc View Source

    DeleteAsync(RequestOptions)

    Declaration
    public Task DeleteAsync(RequestOptions options = null)
    Parameters
    Type Name Description
    RequestOptions options
    Returns
    Type Description
    Task
    | Improve this Doc View Source

    GetAvatarUrl(ImageFormat, UInt16)

    Declaration
    public string GetAvatarUrl(ImageFormat format = ImageFormat.Auto, ushort size = null)
    Parameters
    Type Name Description
    ImageFormat format
    UInt16 size
    Returns
    Type Description
    String
    | Improve this Doc View Source

    ModifyAsync(Action<WebhookProperties>, RequestOptions)

    Declaration
    public async Task ModifyAsync(Action<WebhookProperties> func, RequestOptions options = null)
    Parameters
    Type Name Description
    Action<WebhookProperties> func
    RequestOptions options
    Returns
    Type Description
    Task
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    | Improve this Doc View Source

    UpdateAsync(RequestOptions)

    Declaration
    public async Task UpdateAsync(RequestOptions options = null)
    Parameters
    Type Name Description
    RequestOptions options
    Returns
    Type Description
    Task

    Explicit Interface Implementations

    | Improve this Doc View Source

    IWebhook.Channel

    Gets the channel for this webhook.

    Declaration
    IIntegrationChannel IWebhook.Channel { get; }
    Returns
    Type Description
    IIntegrationChannel
    | Improve this Doc View Source

    IWebhook.Guild

    Gets the guild owning this webhook.

    Declaration
    IGuild IWebhook.Guild { get; }
    Returns
    Type Description
    IGuild

    Implements

    IEntity<TId>
    IWebhook
    IDeletable
    ISnowflakeEntity
    IEntity<TId>
    IUpdateable

    Theme

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