We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f18863 commit 386df6cCopy full SHA for 386df6c
application/src/main/java/org/togetherjava/tjbot/commands/basic/DatabaseCommand.java
@@ -120,6 +120,9 @@ private void handlePutCommand(CommandInteraction event) {
120
// To prevent people from saving malicious content, only users with
121
// elevated permissions are allowed to use this command
122
if (!Objects.requireNonNull(event.getMember()).hasPermission(Permission.MESSAGE_MANAGE)) {
123
+ event.reply("You need the MESSAGE_MANAGE permission to use this command")
124
+ .setEphemeral(true)
125
+ .queue();
126
return;
127
}
128
0 commit comments