public async Task <IReadOnlyCollection <IAuditLogEntry> > GetAuditLogsAsync(int limit = 100, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null, ulong?beforeId = null, ulong?userId = null, ActionType?actionType = null) => (await RestGuild.GetAuditLogsAsync(limit, options, beforeId, userId, actionType).FlattenAsync()) .ToArray();
/// <inheritdoc /> public IAsyncEnumerable <IReadOnlyCollection <IRestAuditLogEntry> > GetAuditLogsAsync(int limit, RequestOptions options = null) => RestGuild.GetAuditLogsAsync(limit, options) .Select(x => x .Select(RestAuditLogEntryAbstractionExtensions.Abstract) .ToArray());