Add isSlashCommandOnly to command interface
This commit is contained in:
1 parent
da3142df0c
commit
c021f84415
1 file changed
+2
-2
@@ -62,11 +62,11 @@ public class SlashCommandContext extends CommandContext implements InteractionCo
|
||||
|
||||
@Override
|
||||
public String getSubcommandGroup() {
|
||||
return getFullCommand().split(" ")[2];
|
||||
return event.getSubcommandGroup();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSubcommand() {
|
||||
return getFullCommand().split(" ")[1];
|
||||
return event.getSubcommandName();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user