Skip to content
Success

Changes

Summary

  1. Message Rework (#2187) (commit: e111d55) (details)
Commit e111d55ee62ea945621d5eb33b5dc2de401892df by noreply
Message Rework (#2187)

* Split send and edit requests
* Introduces new builders and interfaces
* Add support for file descriptions
* Replace file sending methods with FileUpload variants
* Delete AttachmentOption
* Add SplitUtil
* Add MessageCreateRequest#setSuppressEmbeds
* Downgrade gateway api to version 9 until deadline
* Add Message#getComponents
* Improve handling of FileUpload#close
* Add Request#cleanup to handle cancelled request cleanup
* Rename WebhookMessageAction to WebhookMessageCreateAction
* Add FileUpload#setName
* Update note for resource handling
(commit: e111d55)
The file was addedsrc/main/java/net/dv8tion/jda/api/utils/SplitUtil.java
The file was removedsrc/main/java/net/dv8tion/jda/internal/requests/restaction/WebhookMessageActionImpl.java
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/entities/WebhookImpl.java (diff)
The file was removedsrc/main/java/net/dv8tion/jda/api/utils/AllowedMentions.java
The file was addedsrc/main/java/net/dv8tion/jda/internal/requests/restaction/MessageEditActionImpl.java
The file was addedsrc/main/java/net/dv8tion/jda/internal/utils/message/AbstractMessageBuilderMixin.java
The file was addedsrc/main/java/net/dv8tion/jda/api/utils/messages/AbstractMessageBuilder.java
The file was modifiedsrc/main/java/net/dv8tion/jda/api/requests/restaction/interactions/MessageEditCallbackAction.java (diff)
The file was removedsrc/main/java/net/dv8tion/jda/internal/utils/AllowedMentionsImpl.java
The file was addedsrc/main/java/net/dv8tion/jda/api/requests/restaction/WebhookMessageCreateAction.java
The file was modifiedsrc/main/java/net/dv8tion/jda/api/utils/AttachmentUpdate.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/requests/restaction/interactions/ReplyCallbackActionImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/requests/RestAction.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/api/utils/messages/MessageEditData.java
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/entities/mixin/channel/middleman/MessageChannelMixin.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/interactions/InteractionHook.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/utils/BufferedRequestBody.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/api/utils/messages/AllowedMentionsData.java
The file was modifiedsrc/main/java/net/dv8tion/jda/api/entities/GuildMessageChannel.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/api/requests/restaction/MessageEditAction.java
The file was modifiedsrc/main/java/net/dv8tion/jda/api/requests/restaction/interactions/ReplyCallbackAction.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/requests/restaction/interactions/AutoCompleteCallbackAction.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/interactions/callbacks/IMessageEditCallback.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/api/requests/FluentRestAction.java
The file was removedsrc/main/java/net/dv8tion/jda/api/MessageBuilder.java
The file was addedsrc/main/java/net/dv8tion/jda/internal/requests/restaction/WebhookMessageEditActionImpl.java
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/requests/restaction/interactions/AutoCompleteCallbackActionImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/entities/ReceivedMessage.java (diff)
The file was removedsrc/main/java/net/dv8tion/jda/internal/requests/restaction/WebhookMessageUpdateActionImpl.java
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/requests/restaction/interactions/MessageEditCallbackActionImpl.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/internal/requests/restaction/MessageCreateActionImpl.java
The file was addedsrc/main/java/net/dv8tion/jda/internal/utils/message/MessageCreateBuilderMixin.java
The file was modifiedsrc/main/java/net/dv8tion/jda/api/requests/Request.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/api/utils/messages/MessageCreateData.java
The file was modifiedsrc/main/java/net/dv8tion/jda/api/interactions/callbacks/IReplyCallback.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/internal/requests/restaction/WebhookMessageCreateActionImpl.java
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/entities/AbstractMessage.java (diff)
The file was removedsrc/main/java/net/dv8tion/jda/internal/entities/DataMessage.java
The file was removedsrc/main/java/net/dv8tion/jda/api/requests/restaction/WebhookMessageUpdateAction.java
The file was modifiedsrc/main/java/net/dv8tion/jda/api/exceptions/InteractionFailureException.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/internal/utils/message/MessageEditBuilderMixin.java
The file was addedsrc/main/java/net/dv8tion/jda/api/requests/restaction/MessageCreateAction.java
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/interactions/InteractionHookImpl.java (diff)
The file was removedsrc/main/java/net/dv8tion/jda/api/utils/AttachmentOption.java
The file was modifiedsrc/main/java/net/dv8tion/jda/api/requests/restaction/interactions/ModalCallbackAction.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/requests/RestActionImpl.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/api/utils/messages/MessageRequest.java
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/requests/restaction/interactions/InteractionCallbackImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/requests/restaction/interactions/ModalCallbackActionImpl.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/api/requests/restaction/WebhookMessageEditAction.java
The file was addedsrc/main/java/net/dv8tion/jda/api/utils/messages/MessageEditBuilder.java
The file was addedsrc/main/java/net/dv8tion/jda/api/utils/messages/MessageData.java
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/entities/AbstractWebhookClient.java (diff)
The file was removedsrc/main/java/net/dv8tion/jda/api/requests/restaction/WebhookMessageAction.java
The file was modifiedsrc/main/java/net/dv8tion/jda/api/package-info.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/entities/SystemMessage.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/requests/DeferredRestAction.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/JDAInfo.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/interactions/components/buttons/Button.java (diff)
The file was removedsrc/main/java/net/dv8tion/jda/internal/requests/restaction/MessageActionImpl.java
The file was modifiedsrc/main/java/net/dv8tion/jda/api/EmbedBuilder.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/entities/mixin/channel/middleman/GuildMessageChannelMixin.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/entities/WebhookClient.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/entities/Message.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/api/utils/messages/MessageCreateBuilder.java
The file was addedsrc/main/java/net/dv8tion/jda/api/utils/messages/MessageEditRequest.java
The file was removedsrc/main/java/net/dv8tion/jda/api/requests/restaction/MessageAction.java
The file was modifiedsrc/main/java/net/dv8tion/jda/api/utils/FileUpload.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/internal/utils/Helpers.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/api/utils/messages/MessageCreateRequest.java
The file was modifiedsrc/main/java/net/dv8tion/jda/api/utils/AttachedFile.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/api/entities/MessageChannel.java (diff)