From e7cec9588a6c511d81ed5fe629de3cbe208300c2 Mon Sep 17 00:00:00 2001 From: Eugene Garbuzov Date: Thu, 30 Sep 2021 20:29:04 +0300 Subject: [PATCH] Added autocomplete in SlashCommandOptionBuilder. (#206) Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com> --- .../Interactions/Slash Commands/SlashCommandBuilder.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Discord.Net.Core/Entities/Interactions/Slash Commands/SlashCommandBuilder.cs b/src/Discord.Net.Core/Entities/Interactions/Slash Commands/SlashCommandBuilder.cs index ec0883981..6d0f8d260 100644 --- a/src/Discord.Net.Core/Entities/Interactions/Slash Commands/SlashCommandBuilder.cs +++ b/src/Discord.Net.Core/Entities/Interactions/Slash Commands/SlashCommandBuilder.cs @@ -12,15 +12,15 @@ namespace Discord /// public class SlashCommandBuilder { - /// + /// /// Returns the maximun length a commands name allowed by Discord /// public const int MaxNameLength = 32; - /// - /// Returns the maximum length of a commands description allowed by Discord. + /// + /// Returns the maximum length of a commands description allowed by Discord. /// public const int MaxDescriptionLength = 100; - /// + /// /// Returns the maximum count of command options allowed by Discord /// public const int MaxOptionsCount = 25; @@ -382,6 +382,7 @@ namespace Discord /// The description of this option. /// If this option is required for this command. /// If this option is the default option. + /// If this option supports autocomplete. /// The options of the option to add. /// The choices of this option. /// The current builder. @@ -417,6 +418,7 @@ namespace Discord Description = description, Required = required, Default = isDefault, + Autocomplete = isAutocomplete, Options = options, Type = type, Choices = choices != null ? new List(choices) : null,