Skip to content

Commit 9513579

Browse files
Upgraded DIH4JDA (again) and fixed permissions of the /tags command
1 parent f5a67e3 commit 9513579

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dependencies {
2323
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.2")
2424

2525
// DIH4JDA (Interaction Framework) (includes JDA (jda5.0.0-alpha.17))
26-
implementation("com.github.DenuxPlays:DIH4JDA:7e1a00f06a")
26+
implementation("com.github.DenuxPlays:DIH4JDA:7ac2c9c77c")
2727
implementation("org.reflections:reflections:0.10.2")
2828

2929
implementation("com.google.code.gson:gson:2.9.0")

src/main/java/net/javadiscord/javabot/systems/staff_commands/tags/commands/TagsCommand.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,17 @@
22

33
import com.dynxsty.dih4jda.interactions.commands.SlashCommand;
44
import net.dv8tion.jda.api.interactions.commands.build.Commands;
5-
import net.javadiscord.javabot.systems.moderation.CommandModerationPermissions;
65

76
/**
87
* Represents the `/tag` command. This holds commands for interacting with "Custom Tags".
98
*/
10-
public class TagsCommand extends SlashCommand implements CommandModerationPermissions {
9+
public class TagsCommand extends SlashCommand {
1110
/**
1211
* This classes constructor which sets the {@link net.dv8tion.jda.api.interactions.commands.build.SlashCommandData} and
1312
* adds the corresponding {@link net.dv8tion.jda.api.interactions.commands.Command.Subcommand}s.
1413
*/
1514
public TagsCommand() {
16-
setModerationSlashCommandData(Commands.slash("tags", "Commands for interacting with Custom Tags."));
15+
setSlashCommandData(Commands.slash("tags", "Commands for interacting with Custom Tags."));
1716
addSubcommands(new TagViewSubcommand(), new TagListSubcommand());
1817
}
1918
}

0 commit comments

Comments
 (0)