aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/commands/CommandManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/commands/CommandManager.java')
-rw-r--r--src/main/java/commands/CommandManager.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/commands/CommandManager.java b/src/main/java/commands/CommandManager.java
index ac54131..d82033e 100644
--- a/src/main/java/commands/CommandManager.java
+++ b/src/main/java/commands/CommandManager.java
@@ -3,7 +3,7 @@ package commands;
import builders.ScheduleMessageBuilder;
import fileutils.UpcomingChannelsManager;
import net.dv8tion.jda.api.entities.MessageEmbed;
-import net.dv8tion.jda.api.events.interaction.SlashCommandEvent;
+import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;
import net.dv8tion.jda.api.hooks.ListenerAdapter;
import vtuber.ScheduleHandler;
@@ -22,7 +22,7 @@ public class CommandManager extends ListenerAdapter {
System.out.println("CommandManager initialized");
}
@Override
- public void onSlashCommand(SlashCommandEvent e) {
+ public void onSlashCommandInteraction(SlashCommandInteractionEvent e) {
String command = e.getName();
MessageEmbed scheduleMessage;
switch (command) {
@@ -114,7 +114,7 @@ public class CommandManager extends ListenerAdapter {
return true;
}
- public boolean hasPermission(SlashCommandEvent e){
+ public boolean hasPermission(SlashCommandInteractionEvent e){
if (e.getMember().isOwner() || e.getMember().getRoles().contains(e.getGuild().getRoleById(adminRole))){
return true;
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage