✅ Validation Error with Discord.Addons.Hosting
I'm trying to use Discord.Addons.Hosting, but it throws an OptionsValidationException .
My main looks like this:
23 Replies
The validation error doesn't have any message.
By using the debugger, it looks like it doesn't like that the option name is "":
![](https://utfs.io/f/3e1b2e30-6c7a-41c1-9444-8173730de2cd-1nq2cb.png)
what I don't understand is that, even if I set the config section set, it still have an empty name:
.Configure<DiscordHostConfiguration>( hostContext.Configuration.GetSection( "DiscordHostConfiguration" ) )
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
yeah i keep digging it, it looks like it's not the issue but a validation of the lib
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
i'm trying to stepping in the validation error
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
the stacktrace is throwed below the validation
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
ok, i'll run the thing by hand to see if it's that
![](https://utfs.io/f/340bad43-f22b-4566-8f67-bf382f0ec0c1-1nq2cb.png)
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
WAIT WHAT
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
IM A MORON
AHHHHHHHHHHHHHHHHHHHHHHHHHH
![](https://utfs.io/f/c842959e-3c73-4161-88bd-614e4f2c9068-1nq2cb.png)
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
yeah
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
I'll agree with that :D
i'll put the thing as resolved then
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
i'll close the post :D
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View