From 98b03be26a198c8e22ccd8ee51512092519b2fbe Mon Sep 17 00:00:00 2001
From: Quin Lynch <49576606+quinchs@users.noreply.github.com>
Date: Mon, 6 Dec 2021 16:20:58 -0400
Subject: [PATCH] Update isRequired (#1959)
---
.../Interactions/SlashCommands/SlashCommandBuilder.cs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Discord.Net.Core/Entities/Interactions/SlashCommands/SlashCommandBuilder.cs b/src/Discord.Net.Core/Entities/Interactions/SlashCommands/SlashCommandBuilder.cs
index 074a52f32..ccfb2da0a 100644
--- a/src/Discord.Net.Core/Entities/Interactions/SlashCommands/SlashCommandBuilder.cs
+++ b/src/Discord.Net.Core/Entities/Interactions/SlashCommands/SlashCommandBuilder.cs
@@ -397,7 +397,7 @@ namespace Discord
/// The largest number value the user can input.
/// The current builder.
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 options = null, List channelTypes = null, params ApplicationCommandOptionChoiceProperties[] choices)
{
// Make sure the name matches the requirements from discord
@@ -423,7 +423,7 @@ namespace Discord
{
Name = name,
Description = description,
- IsRequired = required,
+ IsRequired = isRequired,
IsDefault = isDefault,
IsAutocomplete = isAutocomplete,
MinValue = minValue,