-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
73a8ed0
commit 932d188
Showing
5 changed files
with
35 additions
and
16 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/Disqord.Rest/Entities/Transient/Guild/CombinedBulkBanResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
namespace Disqord.Rest; | ||
|
||
public class CombinedBulkBanResponse : IBulkBanResponse | ||
{ | ||
public IReadOnlyList<Snowflake> BannedUserIds { get; } | ||
public IReadOnlyList<Snowflake> FailedUserIds { get; } | ||
|
||
public CombinedBulkBanResponse(IEnumerable<IBulkBanResponse> responses) | ||
{ | ||
BannedUserIds = responses.SelectMany(response => response.BannedUserIds).ToArray(); | ||
FailedUserIds = responses.SelectMany(response => response.FailedUserIds).ToArray(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters