Skip to content

Commit 398d770

Browse files
committed
ephemeral message
1 parent 928a6a3 commit 398d770

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/src/main/java/org/togetherjava/tjbot/features/filesharing/FileSharingMessageListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public void onButtonClick(ButtonInteractionEvent event, List<String> args) {
104104
interactionUser.getRoles().stream().map(Role::getName).anyMatch(isSoftModRole);
105105

106106
if (!gistAuthorId.equals(interactionUser.getId()) && !hasSoftModPermissions) {
107-
event.reply("You do not have permission for this action.").queue();
107+
event.reply("You do not have permission for this action.").setEphemeral(true).queue();
108108
return;
109109
}
110110

0 commit comments

Comments
 (0)