-
In the readme, it says that IOptions can be used. I have tried setting this up without much luck due to the token validator behind the scenes. It is not possible to insert a invalid token or null config into ConfigureDiscordHost. The app is also unable to run without ConfigureDiscordHost (of course). So I don't see how it is possible to enter a bot token via IOptions during runtime.. I can confirm that if I put a valid token in (letting app run normally) and then changing that token via IOptions then it works as intended. Can a example be shown to get around these issues? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@nykez Could you explain your scenario a little more? Are you trying to use the |
Beta Was this translation helpful? Give feedback.
@nykez Could you explain your scenario a little more? Are you trying to use the
IOptions
configuration builder to fetch the token via dependency injection at startup?