File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
bot/src/main/kotlin/me/duncte123/skybot/objects Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ package me.duncte123.skybot.objects
2121import me.duncte123.skybot.Variables
2222import me.duncte123.skybot.objects.command.CommandCategory
2323import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent
24+ import net.dv8tion.jda.api.interactions.commands.DefaultMemberPermissions
2425import net.dv8tion.jda.api.interactions.commands.build.CommandData
2526import net.dv8tion.jda.api.interactions.commands.build.Commands
2627import net.dv8tion.jda.api.interactions.commands.build.SlashCommandData
@@ -41,6 +42,7 @@ abstract class SlashSupport : SkyCommand() {
4142 )
4243 .setGuildOnly(true )
4344 .setNSFW(category == CommandCategory .NSFW )
45+ .setDefaultPermissions(DefaultMemberPermissions .enabledFor(this .userPermissions.toList()))
4446
4547 configureSlashSupport(base)
4648
You can’t perform that action at this time.
0 commit comments