Skip to content

Commit 98b03be

Browse files
authored
Update isRequired (#1959)
1 parent aa6bb5e commit 98b03be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Discord.Net.Core/Entities/Interactions/SlashCommands/SlashCommandBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ public ApplicationCommandOptionProperties Build()
397397
/// <param name="maxValue">The largest number value the user can input.</param>
398398
/// <returns>The current builder.</returns>
399399
public SlashCommandOptionBuilder AddOption(string name, ApplicationCommandOptionType type,
400-
string description, bool? required = null, bool isDefault = false, bool isAutocomplete = false, double? minValue = null, double? maxValue = null,
400+
string description, bool? isRequired = null, bool isDefault = false, bool isAutocomplete = false, double? minValue = null, double? maxValue = null,
401401
List<SlashCommandOptionBuilder> options = null, List<ChannelType> channelTypes = null, params ApplicationCommandOptionChoiceProperties[] choices)
402402
{
403403
// Make sure the name matches the requirements from discord
@@ -423,7 +423,7 @@ public SlashCommandOptionBuilder AddOption(string name, ApplicationCommandOption
423423
{
424424
Name = name,
425425
Description = description,
426-
IsRequired = required,
426+
IsRequired = isRequired,
427427
IsDefault = isDefault,
428428
IsAutocomplete = isAutocomplete,
429429
MinValue = minValue,

0 commit comments

Comments
 (0)