Browse Source

Update isRequired (#1959)

tags/3.0.0
Quin Lynch GitHub 3 years ago
parent
commit
98b03be26a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Discord.Net.Core/Entities/Interactions/SlashCommands/SlashCommandBuilder.cs

+ 2
- 2
src/Discord.Net.Core/Entities/Interactions/SlashCommands/SlashCommandBuilder.cs View File

@@ -397,7 +397,7 @@ namespace Discord
/// <param name="maxValue">The largest number value the user can input.</param> /// <param name="maxValue">The largest number value the user can input.</param>
/// <returns>The current builder.</returns> /// <returns>The current builder.</returns>
public SlashCommandOptionBuilder AddOption(string name, ApplicationCommandOptionType type, public SlashCommandOptionBuilder AddOption(string name, ApplicationCommandOptionType type,
string description, bool? required = null, bool isDefault = false, bool isAutocomplete = false, double? minValue = null, double? maxValue = null,
string description, bool? isRequired = null, bool isDefault = false, bool isAutocomplete = false, double? minValue = null, double? maxValue = null,
List<SlashCommandOptionBuilder> options = null, List<ChannelType> channelTypes = null, params ApplicationCommandOptionChoiceProperties[] choices) List<SlashCommandOptionBuilder> options = null, List<ChannelType> channelTypes = null, params ApplicationCommandOptionChoiceProperties[] choices)
{ {
// Make sure the name matches the requirements from discord // Make sure the name matches the requirements from discord
@@ -423,7 +423,7 @@ namespace Discord
{ {
Name = name, Name = name,
Description = description, Description = description,
IsRequired = required,
IsRequired = isRequired,
IsDefault = isDefault, IsDefault = isDefault,
IsAutocomplete = isAutocomplete, IsAutocomplete = isAutocomplete,
MinValue = minValue, MinValue = minValue,


Loading…
Cancel
Save