Skip to content

Commit

Permalink
improved GIST message (#1202)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zabuzard authored Nov 25, 2024
1 parent 0f04908 commit d9873d6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,14 @@ private String getNameOf(Message.Attachment attachment) {

private void sendResponse(MessageReceivedEvent event, String url, String gistId) {
Message message = event.getMessage();
String messageContent = "I uploaded your attachments as **Gist**.";
String messageContent =
"I uploaded your attachments as **Gist**. This makes them more accessible, for example to **mobile users**.";

Button gist = Button.link(url, "Gist");

Button delete = Button.danger(
componentIdInteractor.generateComponentId(message.getAuthor().getId(), gistId),
"Dismiss");
"Delete");

message.reply(messageContent).setActionRow(gist, delete).queue();
}
Expand Down

0 comments on commit d9873d6

Please sign in to comment.