Skip to content

Commit

Permalink
sticker_ids, flags for Message/Webhook send request data (#190)
Browse files Browse the repository at this point in the history
* Add flags to webhook/message send request data

* Add sticker_ids message send request data

* Fix style for WebhookExecuteRequest
  • Loading branch information
Doc94 authored Aug 20, 2024
1 parent 4882bc8 commit 4db572e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
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
Expand All @@ -21,4 +23,7 @@ static ImmutableMessageCreateRequest.Builder builder() {

@Deprecated
Possible<EmbedData> embed();

@JsonProperty("sticker_ids")
Possible<List<Id>> stickerIds();
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

public interface MessageSendRequestBase {

Possible<Integer> flags();

Possible<String> content();

Possible<Boolean> tts();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ static ImmutableWebhookExecuteRequest.Builder builder() {
Possible<String> threadName();

Possible<String> username();

@JsonProperty("avatar_url")
Possible<String> avatarUrl();
}

0 comments on commit 4db572e

Please sign in to comment.