예제 #1
0
 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();
예제 #2
0
 /// <inheritdoc />
 public IAsyncEnumerable <IReadOnlyCollection <IRestAuditLogEntry> > GetAuditLogsAsync(int limit, RequestOptions options = null)
 => RestGuild.GetAuditLogsAsync(limit, options)
 .Select(x => x
         .Select(RestAuditLogEntryAbstractionExtensions.Abstract)
         .ToArray());