Package net.dv8tion.jda.api.entities
Class BulkBanResponse
java.lang.Object
net.dv8tion.jda.api.entities.BulkBanResponse
Response to
Guild.ban(java.util.Collection, Duration)
This response includes a list of successfully banned users and users which could not be banned. Discord might fail to ban a user due to permission issues or an internal server error.
-
Constructor Summary
ConstructorDescriptionBulkBanResponse
(List<UserSnowflake> bannedUsers, List<UserSnowflake> failedUsers) -
Method Summary
Modifier and TypeMethodDescriptionList of successfully banned users.List of users which could not be banned.
-
Constructor Details
-
BulkBanResponse
public BulkBanResponse(@Nonnull List<UserSnowflake> bannedUsers, @Nonnull List<UserSnowflake> failedUsers)
-
-
Method Details
-
getBannedUsers
List of successfully banned users.- Returns:
List
ofUserSnowflake
-
getFailedUsers
List of users which could not be banned.- Returns:
List
ofUserSnowflake
-