✅ 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 "":
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•2y 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•2y ago
Message Not Public
Sign In & Join Server To View
i'm trying to stepping in the validation error
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
the stacktrace is throwed below the validation
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ok, i'll run the thing by hand to see if it's that
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
WAIT WHAT
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
IM A MORON
AHHHHHHHHHHHHHHHHHHHHHHHHHH
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yeah
Unknown User•2y 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•2y ago
Message Not Public
Sign In & Join Server To View
i'll close the post :D
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View