Don't respond to commands that might be handled by other bot instances

This commit is contained in:
Teriuihi 2023-01-04 02:31:35 +01:00
parent c144a71d47
commit a40a838e7a

View File

@ -37,13 +37,6 @@ public class CommandManager extends ListenerAdapter {
.filter(discordCommand -> discordCommand.getName().equalsIgnoreCase(commandName))
.findFirst();
if (first.isEmpty()) {
event.replyEmbeds(new EmbedBuilder()
.setTitle("Invalid command")
.setDescription("We couldn't find a command called [" + commandName + "], please report this issue to a Teri")
.setColor(Color.RED)
.build())
.setEphemeral(true)
.queue();
return;
}
first.get().execute(event);