Skip to content

Commit

Permalink
Merge #166 into 1.7.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Azn9 committed Jun 11, 2024
2 parents 7f19d68 + 68cde03 commit 336076d
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/main/java/discord4j/discordjson/json/BulkBanRequest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package discord4j.discordjson.json;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import discord4j.discordjson.Id;
import discord4j.discordjson.possible.Possible;
import java.util.List;
import org.immutables.value.Value;

@Value.Immutable
@JsonSerialize(as = ImmutableBulkBanRequest.class)
@JsonDeserialize(as = ImmutableBulkBanRequest.class)
public interface BulkBanRequest {

static ImmutableBulkBanRequest.Builder builder() {
return ImmutableBulkBanRequest.builder();
}

@JsonProperty("user_ids")
List<Id> userIds();

@JsonProperty("delete_message_seconds")
Possible<Integer> deleteMessageSeconds();
}
24 changes: 24 additions & 0 deletions src/main/java/discord4j/discordjson/json/BulkBanResponseData.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package discord4j.discordjson.json;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import discord4j.discordjson.Id;
import java.util.List;
import org.immutables.value.Value;

@Value.Immutable
@JsonSerialize(as = ImmutableBulkBanResponseData.class)
@JsonDeserialize(as = ImmutableBulkBanResponseData.class)
public interface BulkBanResponseData {

static ImmutableBulkBanResponseData.Builder builder() {
return ImmutableBulkBanResponseData.builder();
}

@JsonProperty("banned_users")
List<Id> bannedUsers();

@JsonProperty("failed_users")
List<Id> failedUsers();
}

0 comments on commit 336076d

Please sign in to comment.