Skip to content

Commit

Permalink
[Fix] Add null check in SelectMenuBuilder (#2801)
Browse files Browse the repository at this point in the history
  • Loading branch information
Misha-133 authored Dec 3, 2023
1 parent 178ff58 commit b18cc31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ public SelectMenuBuilder AddDefaultValue(SelectMenuDefaultValue value)
/// </returns>
public SelectMenuBuilder WithDefaultValues(params SelectMenuDefaultValue[] defaultValues)
{
DefaultValues = defaultValues.ToList();
DefaultValues = defaultValues?.ToList();
return this;
}

Expand Down

0 comments on commit b18cc31

Please sign in to comment.