Skip to content

Commit bf4cedc

Browse files
implemented missing CommandModerationPermissions
1 parent 577c879 commit bf4cedc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/net/javadiscord/javabot/systems/tags/commands/CustomTagsAdminCommand.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@
33
import com.dynxsty.dih4jda.interactions.commands.SlashCommand;
44
import net.dv8tion.jda.api.interactions.commands.DefaultMemberPermissions;
55
import net.dv8tion.jda.api.interactions.commands.build.Commands;
6+
import net.javadiscord.javabot.systems.moderation.CommandModerationPermissions;
67

78
/**
89
* Represents the `/tag-admin` command. This holds administrative commands for managing "Custom Tags".
910
*/
10-
public class CustomTagsAdminCommand extends SlashCommand {
11+
public class CustomTagsAdminCommand extends SlashCommand implements CommandModerationPermissions {
1112
/**
1213
* This classes constructor which sets the {@link net.dv8tion.jda.api.interactions.commands.build.SlashCommandData} and
1314
* adds the corresponding {@link net.dv8tion.jda.api.interactions.commands.Command.Subcommand}s.
1415
*/
1516
public CustomTagsAdminCommand() {
16-
setSlashCommandData(Commands.slash("tag-admin", "Administrative commands for managing \"Custom Tags\".")
17+
setModerationSlashCommandData(Commands.slash("tag-admin", "Administrative commands for managing \"Custom Tags\".")
1718
.setDefaultPermissions(DefaultMemberPermissions.DISABLED)
1819
.setGuildOnly(true)
1920
);

0 commit comments

Comments
 (0)