Use dictionaries for storing context members, channels, and roles

This commit is contained in:
Tyrrrz
2023-02-14 18:36:53 +02:00
parent a7f4fe0643
commit 2a81abb1a6
4 changed files with 46 additions and 48 deletions

View File

@@ -15,4 +15,13 @@ public static class CollectionExtensions
foreach (var o in source)
yield return (o, i++);
}
public static IEnumerable<T> WhereNotNull<T>(this IEnumerable<T?> source) where T : class
{
foreach (var o in source)
{
if (o is not null)
yield return o;
}
}
}