From cc1ed44c9641e49176f0dd38393cee0cf65d9697 Mon Sep 17 00:00:00 2001 From: Pedro <3602279+Doc94@users.noreply.github.com> Date: Sat, 16 Nov 2024 08:58:56 -0300 Subject: [PATCH] Add GuildMember Banner (#197) --- src/main/java/discord4j/discordjson/json/PartialMemberData.java | 2 ++ .../discord4j/discordjson/json/gateway/GuildMemberUpdate.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/main/java/discord4j/discordjson/json/PartialMemberData.java b/src/main/java/discord4j/discordjson/json/PartialMemberData.java index aaf1360b..1b0d304a 100644 --- a/src/main/java/discord4j/discordjson/json/PartialMemberData.java +++ b/src/main/java/discord4j/discordjson/json/PartialMemberData.java @@ -23,6 +23,8 @@ static ImmutablePartialMemberData.Builder builder() { Optional avatar(); + Possible> banner(); + List roles(); // Nullable for member update event concerning lurker in stage channel diff --git a/src/main/java/discord4j/discordjson/json/gateway/GuildMemberUpdate.java b/src/main/java/discord4j/discordjson/json/gateway/GuildMemberUpdate.java index 92a6ead4..9b9d14d8 100644 --- a/src/main/java/discord4j/discordjson/json/gateway/GuildMemberUpdate.java +++ b/src/main/java/discord4j/discordjson/json/gateway/GuildMemberUpdate.java @@ -32,6 +32,8 @@ static ImmutableGuildMemberUpdate.Builder builder() { Optional avatar(); + Optional banner(); + @JsonProperty("joined_at") Optional joinedAt();