Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
quinchs committed Sep 30, 2021
1 parent 3fda003 commit efc4cb4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ internal SocketAutocompleteInteractionData(DataModel model)
Current = options.FirstOrDefault(x => x.Focused);
Options = options.ToImmutableArray();

if (Options?.Count == 1 && Current == null)
Current = Options.FirstOrDefault();

CommandName = model.Name;
CommandId = model.Id;
Type = model.Type;
Expand Down

0 comments on commit efc4cb4

Please sign in to comment.