Class ReplyMessageProperties
public class ReplyMessageProperties : IMessageProperties
- Inheritance
-
ReplyMessageProperties
- Implements
- Inherited Members
Constructors
ReplyMessageProperties()
public ReplyMessageProperties()
Properties
AllowedMentions
Defines which users and roles the message is allowed to mention.
public AllowedMentionsProperties? AllowedMentions { get; set; }
Property Value
Attachments
A list of attachments to include in the message.
public IEnumerable<AttachmentProperties>? Attachments { get; set; }
Property Value
Components
A list of components to include in the message.
public IEnumerable<IMessageComponentProperties>? Components { get; set; }
Property Value
Content
The text contents of a message, limited to 2000 characters. This limit is raised to 4000 characters for Discord Nitro subscribers.
public string? Content { get; set; }
Property Value
Embeds
A list of up to 10 embeds to include, totalling up to 6000 characters.
public IEnumerable<EmbedProperties>? Embeds { get; set; }
Property Value
FailIfNotExists
public bool? FailIfNotExists { get; set; }
Property Value
- bool?
Flags
Includes additional information about the message's state.
public MessageFlags? Flags { get; set; }
Property Value
Nonce
public NonceProperties? Nonce { get; set; }
Property Value
Poll
public MessagePollProperties? Poll { get; set; }
Property Value
StickerIds
public IEnumerable<ulong>? StickerIds { get; set; }
Property Value
Tts
public bool Tts { get; set; }
Property Value
Methods
AddAttachments(params IEnumerable<AttachmentProperties>)
A list of attachments to include in the message.
public ReplyMessageProperties AddAttachments(params IEnumerable<AttachmentProperties> attachments)
Parameters
attachmentsIEnumerable<AttachmentProperties>
Returns
AddComponents(params IEnumerable<IMessageComponentProperties>)
A list of components to include in the message.
public ReplyMessageProperties AddComponents(params IEnumerable<IMessageComponentProperties> components)
Parameters
componentsIEnumerable<IMessageComponentProperties>
Returns
AddEmbeds(params IEnumerable<EmbedProperties>)
A list of up to 10 embeds to include, totalling up to 6000 characters.
public ReplyMessageProperties AddEmbeds(params IEnumerable<EmbedProperties> embeds)
Parameters
embedsIEnumerable<EmbedProperties>
Returns
AddStickerIds(params IEnumerable<ulong>)
public ReplyMessageProperties AddStickerIds(params IEnumerable<ulong> stickerIds)
Parameters
stickerIdsIEnumerable<ulong>
Returns
ToMessageProperties(ulong)
public MessageProperties ToMessageProperties(ulong messageReferenceId)
Parameters
messageReferenceIdulong
Returns
WithAllowedMentions(AllowedMentionsProperties?)
Defines which users and roles the message is allowed to mention.
public ReplyMessageProperties WithAllowedMentions(AllowedMentionsProperties? allowedMentions)
Parameters
allowedMentionsAllowedMentionsProperties
Returns
WithAttachments(IEnumerable<AttachmentProperties>?)
A list of attachments to include in the message.
public ReplyMessageProperties WithAttachments(IEnumerable<AttachmentProperties>? attachments)
Parameters
attachmentsIEnumerable<AttachmentProperties>
Returns
WithComponents(IEnumerable<IMessageComponentProperties>?)
A list of components to include in the message.
public ReplyMessageProperties WithComponents(IEnumerable<IMessageComponentProperties>? components)
Parameters
componentsIEnumerable<IMessageComponentProperties>
Returns
WithContent(string?)
The text contents of a message, limited to 2000 characters. This limit is raised to 4000 characters for Discord Nitro subscribers.
public ReplyMessageProperties WithContent(string? content)
Parameters
contentstring
Returns
WithEmbeds(IEnumerable<EmbedProperties>?)
A list of up to 10 embeds to include, totalling up to 6000 characters.
public ReplyMessageProperties WithEmbeds(IEnumerable<EmbedProperties>? embeds)
Parameters
embedsIEnumerable<EmbedProperties>
Returns
WithFailIfNotExists(bool?)
public ReplyMessageProperties WithFailIfNotExists(bool? failIfNotExists = true)
Parameters
failIfNotExistsbool?
Returns
WithFlags(MessageFlags?)
Includes additional information about the message's state.
public ReplyMessageProperties WithFlags(MessageFlags? flags)
Parameters
flagsMessageFlags?
Returns
WithNonce(NonceProperties?)
public ReplyMessageProperties WithNonce(NonceProperties? nonce)
Parameters
nonceNonceProperties
Returns
WithPoll(MessagePollProperties?)
public ReplyMessageProperties WithPoll(MessagePollProperties? poll)
Parameters
Returns
WithStickerIds(IEnumerable<ulong>?)
public ReplyMessageProperties WithStickerIds(IEnumerable<ulong>? stickerIds)
Parameters
stickerIdsIEnumerable<ulong>
Returns
WithTts(bool)
public ReplyMessageProperties WithTts(bool tts = true)
Parameters
ttsbool
Returns
Operators
implicit operator ReplyMessageProperties(string)
public static implicit operator ReplyMessageProperties(string content)
Parameters
contentstring