Search Results for

    Show / Hide Table of Contents

    Class DiscordExecuteWebhook

    Represents a discord Execute Webhook API request model. Docs: https://discord.com/developers/docs/resources/webhook#webhook-object-jsonform-params

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

    Properties

    | Improve this Doc View Source

    AllowedMentions

    Allowed mentions for the message.

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

    AvatarUrl

    Override the default avatar of the webhook.

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

    Components

    The components to include with the message.

    Declaration
    [JsonPropertyName("components")]
    public IEnumerable<DiscordComponentData> Components { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<DiscordComponentData>
    Remarks

    Requires an application-owned webhook.

    | Improve this Doc View Source

    Content

    The message contents (up to 2000 characters).

    Declaration
    [JsonPropertyName("content")]
    public string Content { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    Required when Embeds is not provided.

    | Improve this Doc View Source

    Embeds

    Embedded rich content.

    Declaration
    [JsonPropertyName("embeds")]
    public IEnumerable<DiscordEmbedData> Embeds { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<DiscordEmbedData>
    Remarks

    Required when Content is not provided.

    | Improve this Doc View Source

    Username

    Override the default username of the webhook.

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

    UseTts

    True if this is a TTS message.

    Declaration
    [JsonPropertyName("tts")]
    public bool? UseTts { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>

    Implements

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