Table of Contents

Class DiscordFollowupMessageBuilder

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

Constructs a followup message to an interaction.

public sealed class DiscordFollowupMessageBuilder : DisCatSharpBuilder
Inheritance
DiscordFollowupMessageBuilder
Inherited Members

Properties

IsEphemeral

Whether this followup message should be ephemeral.

IsTts

Whether this followup message is text-to-speech.

Poll

Gets the poll for this message.

Methods

AddComponents(params DiscordActionRowComponent[])

Appends several rows of components to the message

AddComponents(params DiscordComponent[])

Adds a row of components to the builder, up to 5 components per row, and up to 5 rows per message.

If WithV2Components() was called, the limit changes to 10 top-level components and max 30 components in total.

AddComponents(IEnumerable<DiscordActionRowComponent>)

Appends several rows of components to the message

AddComponents(IEnumerable<DiscordComponent>)

Appends a collection of components to the message.

AddEmbed(DiscordEmbed)

Adds an embed to the followup message.

AddEmbeds(IEnumerable<DiscordEmbed>)

Adds the given embeds to the followup message.

AddFile(FileStream, bool, string)

Sets if the message has files to be sent.

AddFile(string, Stream, bool, string)

Adds a file to the followup message.

AddFiles(Dictionary<string, Stream>, bool)

Adds the given files to the followup message.

AsEphemeral()

Sets the followup message to be ephemeral.

AsSilentMessage()

Sets the followup message to be send as silent message.

Clear()

Allows for clearing the builder so that it can be used again.

ClearPoll()

Clears the poll from this builder.

SuppressEmbeds()

Sets the followup message to suppress embeds.

WithAllowedMention(IMention)

Adds the mention to the mentions to parse, etc. with the followup message.

WithAllowedMentions(IEnumerable<IMention>)

Adds the mentions to the mentions to parse, etc. with the followup message.

WithContent(string)

Sets the message to send with the followup message.

WithPoll(DiscordPollBuilder)

Adds a poll to this builder.

WithTts(bool)

Indicates if the followup message must use text-to-speech.

WithV2Components()

Sets that this builder should be using UI Kit.