diff --git a/src/main/java/discord4j/discordjson/json/PositionModifyRequest.java b/src/main/java/discord4j/discordjson/json/ChannelPositionModifyRequest.java similarity index 60% rename from src/main/java/discord4j/discordjson/json/PositionModifyRequest.java rename to src/main/java/discord4j/discordjson/json/ChannelPositionModifyRequest.java index dcb561f0..c4dca3c0 100644 --- a/src/main/java/discord4j/discordjson/json/PositionModifyRequest.java +++ b/src/main/java/discord4j/discordjson/json/ChannelPositionModifyRequest.java @@ -9,17 +9,17 @@ import java.util.Optional; @Value.Immutable -@JsonSerialize(as = ImmutablePositionModifyRequest.class) -@JsonDeserialize(as = ImmutablePositionModifyRequest.class) -public interface PositionModifyRequest { +@JsonSerialize(as = ImmutableChannelPositionModifyRequest.class) +@JsonDeserialize(as = ImmutableChannelPositionModifyRequest.class) +public interface ChannelPositionModifyRequest { - static ImmutablePositionModifyRequest.Builder builder() { - return ImmutablePositionModifyRequest.builder(); + static ImmutableChannelPositionModifyRequest.Builder builder() { + return ImmutableChannelPositionModifyRequest.builder(); } String id(); - int position(); + Possible> position(); @JsonProperty("lock_permissions") Possible> lockPermissions(); diff --git a/src/main/java/discord4j/discordjson/json/RolePositionModifyRequest.java b/src/main/java/discord4j/discordjson/json/RolePositionModifyRequest.java new file mode 100644 index 00000000..d4040a97 --- /dev/null +++ b/src/main/java/discord4j/discordjson/json/RolePositionModifyRequest.java @@ -0,0 +1,23 @@ +package discord4j.discordjson.json; + +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import discord4j.discordjson.possible.Possible; +import org.immutables.value.Value; + +import java.util.Optional; + +@Value.Immutable +@JsonSerialize(as = ImmutableRolePositionModifyRequest.class) +@JsonDeserialize(as = ImmutableRolePositionModifyRequest.class) +public interface RolePositionModifyRequest { + + static ImmutableRolePositionModifyRequest.Builder builder() { + return ImmutableRolePositionModifyRequest.builder(); + } + + String id(); + + Possible> position(); + +}