We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb7a84b commit 55b9b8bCopy full SHA for 55b9b8b
src/main/java/de/kittybot/kittybot/commands/utilities/RestrictEmoteCommand.java
@@ -22,6 +22,10 @@ public RestrictEmoteCommand(){
22
23
@Override
24
public void run(CommandContext ctx){
25
+ if(!ctx.getMember().hasPermission(Permission.MANAGE_EMOTES, Permission.MANAGE_ROLES)){
26
+ sendNoPerms(ctx);
27
+ return;
28
+ }
29
var emotes = ctx.getMessage().getEmotes();
30
var roles = ctx.getMentionedRoles();
31
if(emotes.isEmpty() || roles.isEmpty()){
0 commit comments