Class DiscordInteractionResponseBuilder
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
Constructs an interaction response.
public sealed class DiscordInteractionResponseBuilder
- Inheritance
-
DiscordInteractionResponseBuilder
- Inherited Members
Constructors
- DiscordInteractionResponseBuilder()
Constructs a new empty interaction response builder.
- DiscordInteractionResponseBuilder(DiscordMessageBuilder)
Constructs a new DiscordInteractionResponseBuilder based on an existing DiscordMessageBuilder.
Properties
- CallbackHints
The hints to send on this interaction response.
- Choices
The choices to send on this interaction response. Mutually exclusive with content, embed, and components.
- Components
Components to send on this interaction response.
- Content
Content of the message to send.
- Embeds
Embeds to send on this interaction response.
- EmbedsSuppressed
Whether to suppress embeds.
- Files
Files to send on this interaction response.
- IsEphemeral
Whether this interaction response should be ephemeral.
- IsTts
Whether this interaction response is text-to-speech.
- Mentions
Mentions to send on this interaction response.
- NotificationsSuppressed
Whether to send as silent message.
- Poll
Gets the poll for this message.
Methods
- AddAutoCompleteChoice(DiscordApplicationCommandAutocompleteChoice)
Adds a single auto-complete choice to the builder.
- AddAutoCompleteChoices(params DiscordApplicationCommandAutocompleteChoice[])
Adds auto-complete choices to the builder.
- AddAutoCompleteChoices(IEnumerable<DiscordApplicationCommandAutocompleteChoice>)
Adds auto-complete choices to the builder.
- AddComponents(params DiscordComponent[])
Appends a collection of components to the builder. Each call will append to a new row.
- AddComponents(IEnumerable<DiscordActionRowComponent>)
Appends several rows of components to the message
- AddComponents(IEnumerable<DiscordComponent>)
Appends a collection of components to the builder. Each call will append to a new row.
- AddEmbed(DiscordEmbed)
Adds an embed to send with the interaction response.
- AddEmbeds(IEnumerable<DiscordEmbed>)
Adds the given embeds to send with the interaction response.
- AddFile(FileStream, bool, string)
Sets if the message has files to be sent.
- AddFile(string, Stream, bool, string)
Adds a file to the interaction response.
- AddFiles(Dictionary<string, Stream>, bool)
Adds the given files to the interaction response builder.
- AddMention(IMention)
Adds the mention to the mentions to parse, etc. with the interaction response.
- AddMentions(IEnumerable<IMention>)
Adds the mentions to the mentions to parse, etc. with the interaction response.
- AsEphemeral()
Sets the interaction response to be ephemeral.
- AsSilentMessage()
Sets the interaction response to be send as silent message.
- Clear()
Allows for clearing the Interaction Response Builder so that it can be used again to send a new response.
- ClearComponents()
Clears all message components on this builder.
- ClearPoll()
Clears the poll from this builder.
- SuppressEmbeds()
Sets the interaction response to suppress embeds.
- WithCallbackHints(DiscordCallbackHintBuilder)
Provides the interaction response with DiscordInteractionCallbackHints.
- WithContent(string)
Sets the content of the message to send.
- WithPoll(DiscordPollBuilder)
Adds a poll to this builder.
- WithTts(bool)
Indicates if the interaction response will be text-to-speech.