Fix build errors
This commit is contained in:
1 parent
a214244016
commit
c71b246dc0
4 files changed
+6
-18
No files matched your search
@@ -77,7 +77,7 @@ public class BlacklistCommand extends AbstractCommand {
|
||||
|
||||
@Override
|
||||
public void execute(SlashCommandContext context) {
|
||||
String sub = context.getEvent().getCommandPath().split("/")[1];
|
||||
String sub = context.getEvent().getFullCommandName().split(" ")[1];
|
||||
DBBlacklist controller = DBController.get(DBBlacklist.class);
|
||||
String word = context.getEvent().getOption("word", "", OptionMapping::getAsString);
|
||||
context.ackAndWait(true);
|
||||
|
||||
@@ -209,7 +209,7 @@ public class ConfigureCommand extends AbstractCommand {
|
||||
|
||||
@Override
|
||||
public void execute(SlashCommandContext context) {
|
||||
String sub = context.getEvent().getCommandPath().split("/")[1];
|
||||
String sub = context.getEvent().getFullCommandName().split(" ")[1];
|
||||
GuildManager guildManager = GuildManager.getManager(context.getGuild());
|
||||
context.ackAndWait(true);
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ public class QueueCommand extends AbstractMusicCommand {
|
||||
public void execute(SlashCommandContext context) {
|
||||
MusicManager manager = MusicManager.get(context.getGuild());
|
||||
context.ackAndWait();
|
||||
String sub = context.getEvent().getCommandPath().split("/")[1];
|
||||
String sub = context.getEvent().getFullCommandName().split(" ")[1];
|
||||
|
||||
if (!MusicUtils.checkIfConnected(manager, context)) {
|
||||
return;
|
||||
|
||||
@@ -6,26 +6,14 @@ package netneutrality.hooks.voice;
|
||||
* https://discord.gg/CdFcyQ
|
||||
*/
|
||||
|
||||
import net.dv8tion.jda.api.events.guild.voice.GuildVoiceJoinEvent;
|
||||
import net.dv8tion.jda.api.events.guild.voice.GuildVoiceLeaveEvent;
|
||||
import net.dv8tion.jda.api.events.guild.voice.GuildVoiceMoveEvent;
|
||||
import net.dv8tion.jda.api.events.guild.voice.GuildVoiceUpdateEvent;
|
||||
import net.dv8tion.jda.api.hooks.ListenerAdapter;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class VoiceEventHandler extends ListenerAdapter {
|
||||
|
||||
@Override
|
||||
public void onGuildVoiceJoin(@NotNull GuildVoiceJoinEvent event) {
|
||||
super.onGuildVoiceJoin(event);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onGuildVoiceMove(@NotNull GuildVoiceMoveEvent event) {
|
||||
super.onGuildVoiceMove(event);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onGuildVoiceLeave(@NotNull GuildVoiceLeaveEvent event) {
|
||||
super.onGuildVoiceLeave(event);
|
||||
public void onGuildVoiceUpdate(@NotNull GuildVoiceUpdateEvent event) {
|
||||
super.onGuildVoiceUpdate(event);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user