[AB-347] adding support for multiple and generic attachments to modmail

fixing editing messages with multiple embeds
fixing message limit also bein imposed on pure embed count
This commit is contained in:
Sheldan
2021-12-25 16:29:23 +01:00
parent cc898b27bb
commit 986b65a1e4
6 changed files with 54 additions and 7 deletions

View File

@@ -8,6 +8,9 @@ import lombok.Setter;
import net.dv8tion.jda.api.entities.Member;
import net.dv8tion.jda.api.entities.Message;
import java.util.List;
import java.util.Map;
/**
* Model used to render the response by staff members to the DM channel with the user
*/
@@ -36,6 +39,8 @@ public class ModMailModeratorReplyModel {
* Whether or not the reply should be shown anonymous
*/
private Boolean anonymous;
private List<String> attachedImageUrls;
private Map<String, String> remainingAttachments;
/**
* The {@link ModMailThread} to reply to
*/

View File

@@ -7,6 +7,7 @@ import net.dv8tion.jda.api.entities.Member;
import net.dv8tion.jda.api.entities.Message;
import java.util.List;
import java.util.Map;
/**
* Model used to render the response by the user to the mod mail thread channel.
@@ -23,6 +24,8 @@ public class ModMailUserReplyModel {
* The {@link Message} which was posted, which contains all the possible information
*/
private Message postedMessage;
private List<String> attachedImageUrls;
private Map<String, String> remainingAttachments;
/**
* List of {@link Member} which are registered as subscribers for a particular mod mail thread and will be pinged
* when the user sends a new message