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:
2024-05-08 14:58:15 +03:00
parent fc93255503
commit 9525394a6e
5 changed files with 140 additions and 6 deletions

View File

@@ -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);