|
|
@@ -15,7 +15,7 @@ namespace Discord |
|
|
|
public static IReadOnlyCollection<TValue> ToReadOnlyCollection<TValue>(this IEnumerable<TValue> query, Func<int> countFunc) |
|
|
|
=> new ConcurrentDictionaryWrapper<TValue>(query, countFunc); |
|
|
|
|
|
|
|
public static bool Contains(this IEnumerable<IEntity<ulong>> roles, ulong id) |
|
|
|
public static bool ContainsId(this IEnumerable<IEntity<ulong>> roles, ulong id) |
|
|
|
{ |
|
|
|
return roles.Any(x => x.Id == id); |
|
|
|
} |
|
|
|