Discore
Show / Hide Table of Contents

Class CreateMessageOptions

Inheritance
object
CreateMessageOptions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Discore.Http
Assembly: Discore.dll
Syntax
public class CreateMessageOptions

Constructors

Name Description
CreateMessageOptions()
CreateMessageOptions(string)

Properties

Name Description
AllowedMentions

Gets or sets the allowed mentions for the message.

Attachments

Gets or sets file attachments to upload with the message.

Content

Gets or sets the contents of the message.

Embeds

Gets or sets embeds to be sent with the message.

Flags

Gets or sets the flags of the message.

Note: Only SuppressEmbeds can be set/unset.
MessageReference

Gets or sets the message to reply to.

Nonce

Gets or sets a nonce used for validating whether a message was created.

TextToSpeech

Gets or sets whether the message should use text-to-speech. Default: false

Methods

Name Description
AddAttachment(AttachmentOptions)

Adds an attachment to upload with the message.

AddEmbed(EmbedOptions)

Adds an embed to be sent with the message.

SetAllowedMentions(AllowedMentionsOptions?)

Sets which mentions are allowed for the message.

SetAttachments(IList<AttachmentOptions>?)

Sets attachments to upload with the message.

SetContent(string)

Sets the contents of the message.

SetEmbeds(IList<EmbedOptions>?)

Sets embeds to be sent with the message.

SetFlags(DiscordMessageFlags?)

Sets the flags of the message.

Note: Only SuppressEmbeds can be set/unset.
SetMessageReference(MessageReferenceOptions?)

Sets the message to reply to.

SetNonce(Snowflake?)

Sets a nonce used for validating whether a message was created.

SetTextToSpeech(bool)

Sets whether the message should use text-to-speech.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX