Skip to content

Commit

Permalink
Update SlashCommandManager.java
Browse files Browse the repository at this point in the history
  • Loading branch information
xdnw committed May 22, 2024
1 parent 4c97544 commit 2365bd1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import net.dv8tion.jda.api.interactions.AutoCompleteQuery;
import net.dv8tion.jda.api.interactions.InteractionHook;
import net.dv8tion.jda.api.interactions.commands.Command.Choice;
import net.dv8tion.jda.api.interactions.commands.DefaultMemberPermissions;
import net.dv8tion.jda.api.interactions.commands.OptionMapping;
import net.dv8tion.jda.api.interactions.commands.OptionType;
import net.dv8tion.jda.api.interactions.commands.build.*;
Expand Down Expand Up @@ -407,6 +408,7 @@ public SlashCommandData adaptCommands(Map<ParametricCallable, String> finalMappi
}
finalMappings.put(parametric, fullPath);
}
root.setDefaultPermissions(DefaultMemberPermissions.ENABLED);
return root;
}

Expand Down

0 comments on commit 2365bd1

Please sign in to comment.