Interface IDiscordMessageBuilder
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
Base interface for any discord message builder.
public interface IDiscordMessageBuilder
Properties
- Components
All components on this message.
- Content
Getter / setter for message content.
- Embeds
All embeds on this message.
- Files
All files on this message.
- IsTTS
Whether this message will play as a text-to-speech message.
- Mentions
All allowed mentions on this message.
- Poll
Gets or sets a poll for this message.
Methods
- AddComponents(params DiscordComponent[])
Adds components to this message. Each call should append to a new row.
- AddComponents(IEnumerable<DiscordActionRowComponent>)
Adds an action row component to this message.
- AddComponents(IEnumerable<DiscordComponent>)
Adds components to this message. Each call should append to a new row.
- AddEmbed(DiscordEmbed)
Adds an embed to this message.
- AddEmbeds(IEnumerable<DiscordEmbed>)
Adds multiple embeds to this message.
- AddFile(FileStream, AddFileOptions)
Attaches a file to this message.
- AddFile(FileStream, bool)
Attaches a file to this message.
- AddFile(string, Stream, AddFileOptions)
Attaches a file to this message.
- AddFile(string, Stream, bool)
Attaches a file to this message.
- AddFiles(IDictionary<string, Stream>, AddFileOptions)
Attaches multiple files to this message.
- AddFiles(IDictionary<string, Stream>, bool)
Attaches multiple files to this message.
- AddFiles(IEnumerable<DiscordMessageFile>)
Attaches previously used files to this file stream.
- AddMention(IMention)
Adds an allowed mention to this message.
- AddMentions(IEnumerable<IMention>)
Adds multiple allowed mentions to this message.
- Clear()
Clears this builder.
- ClearComponents()
Clears all components attached to this builder.
- SuppressNotifications()
Applies SuppressNotifications to the message.
- WithContent(string)
Adds content to this message
- WithTTS(bool)
Sets whether this message should play as a text-to-speech message.