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

@@ -56,6 +56,11 @@ public class SettingsDictionary<TKey, TValue>
_Dictionary.Add(key, value);
}
public bool ContainsAllKeys(params TKey[] keys)
{
return keys.All(key => _Dictionary.ContainsKey(key));
}
public bool ContainsKey(TKey key)
{
return _Dictionary.ContainsKey(key);