Upload text attachment also if there no other attachments

Fixes #1598
This commit is contained in:
AsamK 2024-09-29 09:43:51 +02:00
parent 91eacc18c2
commit fab1b96c21

View file

@ -771,6 +771,8 @@ public class ManagerImpl implements Manager {
} else { } else {
messageBuilder.withAttachments(uploadedAttachments); messageBuilder.withAttachments(uploadedAttachments);
} }
} else if (!additionalAttachments.isEmpty()) {
messageBuilder.withAttachments(additionalAttachments);
} }
if (!message.mentions().isEmpty()) { if (!message.mentions().isEmpty()) {
messageBuilder.withMentions(resolveMentions(message.mentions())); messageBuilder.withMentions(resolveMentions(message.mentions()));