Search Results for

    Show / Hide Table of Contents

    Class DiscordWebhookData

    Represents a discord Webhook Structure API model. Docs: https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-structure

    Inheritance
    Object
    DiscordWebhookData
    Implements
    IEquatable<DiscordWebhookData>
    Inherited Members
    System.Object.Equals(System.Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Object.ToString()
    Namespace: Color_Chan.Discord.Core.Common.API.DataModels
    Assembly: Color-Chan.Discord.Core.dll
    Syntax
    public class DiscordWebhookData : IEquatable<DiscordWebhookData>

    Properties

    | Improve this Doc View Source

    ApplicationId

    The bot/OAuth2 application that created this webhook.

    Declaration
    [JsonPropertyName("application_id")]
    public ulong? ApplicationId { get; set; }
    Property Value
    Type Description
    System.Nullable<System.UInt64>
    | Improve this Doc View Source

    Avatar

    The default user avatar hash of the webhook.

    Declaration
    [JsonPropertyName("avatar")]
    public string Avatar { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    ChannelId

    The channel id this webhook is for, if any.

    Declaration
    [JsonPropertyName("channel_id")]
    public ulong? ChannelId { get; set; }
    Property Value
    Type Description
    System.Nullable<System.UInt64>
    | Improve this Doc View Source

    Creator

    The user this webhook was created by (not returned when getting a webhook with its token).

    Declaration
    [JsonPropertyName("user")]
    public DiscordUserData Creator { get; set; }
    Property Value
    Type Description
    DiscordUserData
    | Improve this Doc View Source

    GuildId

    The guild id this webhook is for, if any.

    Declaration
    [JsonPropertyName("guild_id")]
    public ulong? GuildId { get; set; }
    Property Value
    Type Description
    System.Nullable<System.UInt64>
    | Improve this Doc View Source

    Id

    The id of the webhook.

    Declaration
    [JsonPropertyName("id")]
    public ulong Id { get; set; }
    Property Value
    Type Description
    System.UInt64
    | Improve this Doc View Source

    Name

    The default name of the webhook.

    Declaration
    [JsonPropertyName("name")]
    public string Name { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    PartialChannel

    The channel that this webhook is following (returned for Channel Follower Webhooks).

    Declaration
    [JsonPropertyName("source_guild")]
    public DiscordChannelData PartialChannel { get; set; }
    Property Value
    Type Description
    DiscordChannelData
    | Improve this Doc View Source

    PartialGuild

    The guild of the channel that this webhook is following (returned for Channel Follower Webhooks).

    Declaration
    [JsonPropertyName("source_guild")]
    public DiscordGuildData PartialGuild { get; set; }
    Property Value
    Type Description
    DiscordGuildData
    | Improve this Doc View Source

    Token

    The secure token of the webhook (returned for Incoming Webhooks).

    Declaration
    [JsonPropertyName("token")]
    public string Token { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Type

    The type of the webhook.

    Declaration
    [JsonPropertyName("type")]
    public DiscordWebhookType Type { get; set; }
    Property Value
    Type Description
    DiscordWebhookType
    | Improve this Doc View Source

    Url

    The url used for executing the webhook (returned by the webhooks OAuth2 flow).

    Declaration
    [JsonPropertyName("url")]
    public string Url { get; set; }
    Property Value
    Type Description
    String

    Implements

    System.IEquatable<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX