From 3fda00312035d85062807a3096d7af038d1f17c0 Mon Sep 17 00:00:00 2001 From: quin lynch Date: Thu, 30 Sep 2021 14:39:24 -0300 Subject: [PATCH] Fix duplicate autocomplete --- src/Discord.Net.Core/Discord.Net.Core.xml | 18 +++++++++++++----- .../Slash Commands/SlashCommandBuilder.cs | 1 - 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/Discord.Net.Core/Discord.Net.Core.xml b/src/Discord.Net.Core/Discord.Net.Core.xml index c9ad2b134..d748671c0 100644 --- a/src/Discord.Net.Core/Discord.Net.Core.xml +++ b/src/Discord.Net.Core/Discord.Net.Core.xml @@ -5955,17 +5955,17 @@ - + Returns the maximun length a commands name allowed by Discord - - Returns the maximum length of a commands description allowed by Discord. + + Returns the maximum length of a commands description allowed by Discord. - + Returns the maximum count of command options allowed by Discord @@ -6117,7 +6117,7 @@ The built version of this option. - + Adds an option to the current slash command. @@ -6126,6 +6126,7 @@ 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. @@ -6181,6 +6182,13 @@ The value to set. The current builder. + + + Sets the current builders autocomplete field. + + The value to set. + The current builder. + Sets the current type of this builder. 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 6d0f8d260..624a7399b 100644 --- a/src/Discord.Net.Core/Entities/Interactions/Slash Commands/SlashCommandBuilder.cs +++ b/src/Discord.Net.Core/Entities/Interactions/Slash Commands/SlashCommandBuilder.cs @@ -422,7 +422,6 @@ namespace Discord Options = options, Type = type, Choices = choices != null ? new List(choices) : null, - Autocomplete = isAutocomplete, }; return AddOption(option);