Search Results for

    Show / Hide Table of Contents

    Class DiscordCreateChannelMessage

    Represents a discord Create Message API request model. Docs: https://discord.com/developers/docs/resources/channel#embed-limits-jsonform-params

    Inheritance
    System.Object
    DiscordCreateChannelMessage
    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.Channel
    Assembly: Color-Chan.Discord.Core.dll
    Syntax
    public class DiscordCreateChannelMessage

    Properties

    | Improve this Doc View Source

    AllowedMentions

    Allowed mentions for the message.

    Declaration
    [JsonPropertyName("allowed_mentions")]
    public IEnumerable<DiscordAllowedMentionsData> AllowedMentions { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<DiscordAllowedMentionsData>
    | 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>
    | 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 no file, embed or sticker is set.

    | Improve this Doc View Source

    Embed

    Embedded rich content.

    Declaration
    [JsonPropertyName("embed ")]
    [Obsolete("deprecated in favor of embeds")]
    public IEnumerable<DiscordEmbedData> Embed { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<DiscordEmbedData>
    | Improve this Doc View Source

    Embeds

    Embedded rich content (up to 6000 characters).

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

    Required when no file, content or sticker is set.

    | Improve this Doc View Source

    MessageReference

    Include to make your message a reply.

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

    StickerIds

    IDs of up to 3 stickers in the server to send in the message

    Declaration
    [JsonPropertyName("sticker_ids")]
    public IEnumerable<ulong> StickerIds { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<System.UInt64>
    Remarks

    Required when no file, content or embeds are set.

    | Improve this Doc View Source

    Tts

    True if this is a TTS message.

    Declaration
    [JsonPropertyName("tts")]
    public bool? Tts { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX