//Audit logs /// <summary> /// Gets the specified number of audit log entries for this guild. /// </summary> /// <param name="limit">The number of audit log entries to fetch.</param> /// <param name="options">The options to be used when sending the request.</param> /// <returns> /// A task that represents the asynchronous get operation. The task result contains a read-only collection /// of the requested audit log entries. /// </returns> public IAsyncEnumerable <IReadOnlyCollection <RestAuditLogEntry> > GetAuditLogsAsync(int limit, RequestOptions options = null) => GuildHelper.GetAuditLogsAsync(this, Discord, null, limit, options);
//Audit logs /// <summary> /// Gets the specified number of audit log entries for this guild. /// </summary> /// <param name="limit">The number of audit log entries to fetch.</param> /// <param name="options">The options to be used when sending the request.</param> /// <param name="beforeId">The audit log entry ID to get entries before.</param> /// <param name="actionType">The type of actions to filter.</param> /// <param name="userId">The user ID to filter entries for.</param> /// <returns> /// A task that represents the asynchronous get operation. The task result contains a read-only collection /// of the requested audit log entries. /// </returns> public IAsyncEnumerable <IReadOnlyCollection <RestAuditLogEntry> > GetAuditLogsAsync(int limit, RequestOptions options = null, ulong?beforeId = null, ulong?userId = null, ActionType?actionType = null) => GuildHelper.GetAuditLogsAsync(this, Discord, beforeId, limit, options, userId: userId, actionType: actionType);