mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-02 11:49:02 +00:00
Use dictionaries for storing context members, channels, and roles
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user