Updated discord.net library to version 3.14.1. Added method in SettingsDictionary to bulk check if keys are in dictionary.
This commit is contained in:
@@ -28,7 +28,7 @@ public partial class HomePage : Window
|
||||
{
|
||||
await Config.Initialize();
|
||||
|
||||
if(string.IsNullOrWhiteSpace(Config.AppSettings["token"]) || string.IsNullOrWhiteSpace(Config.AppSettings["prefix"]))
|
||||
if(!Config.AppSettings.ContainsAllKeys("token", "prefix"))
|
||||
{
|
||||
await new SettingsPage().ShowDialog(this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user