Select more than one option in one select menu.
I used the example for adding 2 select menu (one after another), but I would like to be able to select multiple options in one of them, is this possible?
I made some changes to the code to be able to send one select menu to accept multiple selection, but in the code I only received one string.
in the SendSelectionAsync() method I only get one value, I can't find a way to understand how this method received what the user send through the select menu with multi selection.
I was trying to make this feature but the this project doesn't work on my local I have spent almost 2 days trying to build the fergun.interactive source, but it says "it can't find the same library project dll"
Severity Code Description Project File Line Suppression State Error MSB3030 Could not copy the file obj\Debug\netstandard2.0\Fergun.Interactive.Local.dll because it was not found. Fergun.Interactive.Local C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets 4632
so I created a new library class project pointing to .net 6.0 and it gives me these errors in the InteractiveGuards
The library can be built from source through Visual Studio with no problems. The library uses PolySharp to allow the use of C# 11 features on .NET Standard (like extended nameof scope). On .NET 6 you can use them by simply changing the language version to 11.
About your initial question, it's currently not possible to have multiple selections per message. It's someting I might fix at some point though.
The language version 11 was the first error I got when opening the project, I had to put a question mark in the language version.
If I could make it work I guess I can give it a try to add the multi selection feature. But I will need to change the base methods to be able to override it with the maxValue.
If I can't compile it, then I will PR a little example without changing the base code, but I will need to quit the TOption to put a concrete type like <string> or a class.
Please let me know if that would help or not.
You need the .NET 7 SDK to compile the project since it uses C# 11.
You can create a PR but it should not create breaking changes, or at least make them minimal.
Thank you! I changed to .net 7 and it's working fine.