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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user