Browse Source

Fix exposed optional

pull/1923/head
quin lynch 3 years ago
parent
commit
cdbebb4447
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.WebSocket/Entities/Interaction/Slash Commands/SocketAutocompleteInteractionData.cs

+ 1
- 1
src/Discord.Net.WebSocket/Entities/Interaction/Slash Commands/SocketAutocompleteInteractionData.cs View File

@@ -70,7 +70,7 @@ namespace Discord.WebSocket
} }
else if(model.Focused.IsSpecified) else if(model.Focused.IsSpecified)
{ {
options.Add(new AutocompleteOption(model.Type, model.Name, model.Value, model.Focused.Value));
options.Add(new AutocompleteOption(model.Type, model.Name, model.Value.GetValueOrDefault(null), model.Focused.Value));
} }


return options; return options;


Loading…
Cancel
Save