From 4a8b7024821440c233d59d8ae55ff1030c3242cb Mon Sep 17 00:00:00 2001 From: Axel JOLY Date: Mon, 18 Mar 2024 14:47:48 -0400 Subject: [PATCH] fix: added missing nsfw field for application command --- .../java/discord4j/discordjson/json/ApplicationCommandData.java | 2 ++ .../discord4j/discordjson/json/ApplicationCommandRequest.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/main/java/discord4j/discordjson/json/ApplicationCommandData.java b/src/main/java/discord4j/discordjson/json/ApplicationCommandData.java index afafffb9..779c39e5 100644 --- a/src/main/java/discord4j/discordjson/json/ApplicationCommandData.java +++ b/src/main/java/discord4j/discordjson/json/ApplicationCommandData.java @@ -95,4 +95,6 @@ static ImmutableApplicationCommandData.Builder builder() { @JsonProperty("contexts") List contexts(); + + Possible nsfw(); } diff --git a/src/main/java/discord4j/discordjson/json/ApplicationCommandRequest.java b/src/main/java/discord4j/discordjson/json/ApplicationCommandRequest.java index fd35434a..3747ed3d 100644 --- a/src/main/java/discord4j/discordjson/json/ApplicationCommandRequest.java +++ b/src/main/java/discord4j/discordjson/json/ApplicationCommandRequest.java @@ -65,4 +65,6 @@ static ImmutableApplicationCommandRequest.Builder builder() { @JsonProperty("contexts") Possible> contexts(); + + Possible nsfw(); }