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 SourceAllowedMentions
Allowed mentions for the message.
Declaration
[JsonPropertyName("allowed_mentions")]
public IEnumerable<DiscordAllowedMentionsData> AllowedMentions { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordAllowedMentionsData> |
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> |
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.
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> |
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.
MessageReference
Include to make your message a reply.
Declaration
[JsonPropertyName("message_reference")]
public DiscordMessageReferenceData MessageReference { get; set; }
Property Value
Type | Description |
---|---|
DiscordMessageReferenceData |
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.
Tts
True if this is a TTS message.
Declaration
[JsonPropertyName("tts")]
public bool? Tts { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |