Don't respond to commands that might be handled by other bot instances
This commit is contained in:
parent
c144a71d47
commit
a40a838e7a
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user