Skip to content

Commit

Permalink
Upload text attachment also if there no other attachments
Browse files Browse the repository at this point in the history
Fixes #1598
  • Loading branch information
AsamK committed Sep 29, 2024
1 parent 91eacc1 commit fab1b96
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,8 @@ private void applyMessage(
} else {
messageBuilder.withAttachments(uploadedAttachments);
}
} else if (!additionalAttachments.isEmpty()) {
messageBuilder.withAttachments(additionalAttachments);
}
if (!message.mentions().isEmpty()) {
messageBuilder.withMentions(resolveMentions(message.mentions()));
Expand Down

0 comments on commit fab1b96

Please sign in to comment.