Skip to content

Commit 8388c28

Browse files
authored
Update ACommand.java
1 parent 55b9b8b commit 8388c28

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/de/kittybot/kittybot/objects/command/ACommand.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ protected MessageAction reactionImage(CommandContext ctx, boolean nsfw, String t
179179
if(nsfw && !ctx.getChannel().isNSFW()){
180180
return error(ctx, "This image command is NSFW channel only");
181181
}
182+
if(!ctx.getSelfMember().hasPermission(ctx.getChannel(), Permission.MESSAGE_EMBED_LINKS)){
183+
return error(ctx, "I don't have the MESSAGE_EMBED_LINKS permission to add images here");
184+
}
182185
var users = ctx.getMentionedUsers();
183186

184187
var message = new StringBuilder();

0 commit comments

Comments
 (0)