Class MessageRequest
public class MessageRequest
- Inheritance
-
objectMessageRequest
Properties
AllowedMentions
Controls which mentions trigger notifications.
[JsonProperty("allowed_mentions")]
public AllowedMentionsRequest? AllowedMentions { get; set; }
Property Value
Attachments
Array of attachment objects.
[JsonProperty("attachments")]
public List<AttachmentJson>? Attachments { get; set; }
Property Value
- List<AttachmentJson>
Content
The message content (up to 2000 characters)
[JsonProperty("content")]
public string? Content { get; set; }
Property Value
Embeds
Array of embed objects to include in the message.
[JsonProperty("embeds")]
public EmbedRequest[]? Embeds { get; set; }
Property Value
FavoriteMediaId
ID of a favorite meme to attach.
[JsonProperty("favorite_meme_id")]
public ulong? FavoriteMediaId { get; set; }
Property Value
Flags
Message flags bitfield.
[JsonProperty("flags")]
public MessageFlag Flags { get; set; }
Property Value
IsTTS
Whether this is a text-to-speech message.
[JsonProperty("tts")]
public bool? IsTTS { get; set; }
Property Value
- bool?
MessageReference
Reference to another message (for replies or forwards)
[JsonProperty("message_reference")]
public MessageReferenceRequest? MessageReference { get; set; }
Property Value
Nonce
Client-generated identifier for the message.
[JsonProperty("nonce")]
public string? Nonce { get; set; }
Property Value
StickerIds
Array of sticker IDs to include (max 3)
[JsonProperty("sticker_ids")]
public List<ulong>? StickerIds { get; set; }
Property Value
WebhookAvatarUrl
Custom webhook avatar for the message.
[JsonProperty("avatar_url")]
public string? WebhookAvatarUrl { get; set; }
Property Value
WebhookUsername
Custom webhook name for the message.
[JsonProperty("username")]
public string? WebhookUsername { get; set; }