Class RestAutocompleteInteraction
Represents a REST-based autocomplete interaction.
Inheritance
RestAutocompleteInteraction
Assembly: Discord.Net.Rest.dll
Syntax
public class RestAutocompleteInteraction : RestInteraction, IEntity<ulong>, IAutocompleteInteraction, IDiscordInteraction, ISnowflakeEntity, IEntity<ulong>
Properties
|
Improve this Doc
View Source
Data
Gets the autocomplete data of this interaction.
Declaration
public RestAutocompleteInteractionData Data { get; }
Property Value
Methods
|
Improve this Doc
View Source
Defer(Boolean, RequestOptions)
Declaration
public override string Defer(bool ephemeral = false, RequestOptions options = null)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
FollowupAsync(String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
Declaration
public override Task<RestFollowupMessage> FollowupAsync(string text = null, Embed[] embeds = null, bool isTTS = false, bool ephemeral = false, AllowedMentions allowedMentions = null, MessageComponent components = null, Embed embed = null, RequestOptions options = null)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
FollowupWithFileAsync(FileAttachment, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
Declaration
public override Task<RestFollowupMessage> FollowupWithFileAsync(FileAttachment attachment, string text = null, Embed[] embeds = null, bool isTTS = false, bool ephemeral = false, AllowedMentions allowedMentions = null, MessageComponent components = null, Embed embed = null, RequestOptions options = null)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
FollowupWithFileAsync(Stream, String, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
Declaration
public override Task<RestFollowupMessage> FollowupWithFileAsync(Stream fileStream, string fileName, string text = null, Embed[] embeds = null, bool isTTS = false, bool ephemeral = false, AllowedMentions allowedMentions = null, MessageComponent components = null, Embed embed = null, RequestOptions options = null)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
FollowupWithFileAsync(String, String, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
Declaration
public override Task<RestFollowupMessage> FollowupWithFileAsync(string filePath, string fileName = null, string text = null, Embed[] embeds = null, bool isTTS = false, bool ephemeral = false, AllowedMentions allowedMentions = null, MessageComponent components = null, Embed embed = null, RequestOptions options = null)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
FollowupWithFilesAsync(IEnumerable<FileAttachment>, String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
Declaration
public override Task<RestFollowupMessage> FollowupWithFilesAsync(IEnumerable<FileAttachment> attachments, string text = null, Embed[] embeds = null, bool isTTS = false, bool ephemeral = false, AllowedMentions allowedMentions = null, MessageComponent components = null, Embed embed = null, RequestOptions options = null)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
Respond(RequestOptions, AutocompleteResult[])
Responds to this interaction with a set of choices.
Declaration
public string Respond(RequestOptions options = null, params AutocompleteResult[] result)
Parameters
Type |
Name |
Description |
RequestOptions |
options |
The request options for this response.
|
AutocompleteResult[] |
result |
The set of choices for the user to pick from.
A max of 25 choices are allowed. Passing null for this argument will show the executing user that
there is no choices for their autocompleted input.
|
Returns
Type |
Description |
String |
A string that contains json to write back to the incoming http request.
|
|
Improve this Doc
View Source
Respond(IEnumerable<AutocompleteResult>, RequestOptions)
Responds to this interaction with a set of choices.
Declaration
public string Respond(IEnumerable<AutocompleteResult> result, RequestOptions options = null)
Parameters
Type |
Name |
Description |
IEnumerable<AutocompleteResult> |
result |
The set of choices for the user to pick from.
A max of 25 choices are allowed. Passing null for this argument will show the executing user that
there is no choices for their autocompleted input.
|
RequestOptions |
options |
The request options for this response.
|
Returns
Type |
Description |
String |
A string that contains json to write back to the incoming http request.
|
|
Improve this Doc
View Source
Respond(String, Embed[], Boolean, Boolean, AllowedMentions, MessageComponent, Embed, RequestOptions)
Declaration
public override string Respond(string text = null, Embed[] embeds = null, bool isTTS = false, bool ephemeral = false, AllowedMentions allowedMentions = null, MessageComponent components = null, Embed embed = null, RequestOptions options = null)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
RespondWithModal(Modal, RequestOptions)
Declaration
public override string RespondWithModal(Modal modal, RequestOptions options = null)
Parameters
Returns
Overrides
Explicit Interface Implementations
|
Improve this Doc
View Source
IAutocompleteInteraction.Data
Gets the autocomplete data of this interaction.
Declaration
IAutocompleteInteractionData IAutocompleteInteraction.Data { get; }
Returns
Implements
Extension Methods