LOGGER.debug("User {} attempted to run a disabled command !",event.getMessage().getAuthor().getID());
DiscordInteractionsUtil.sendMessage(event.getMessage().getChannel(),"Command is disabled.");
LOGGER.info("Denied command {} for user #{}. OPCode: {}, Reason: {}",targetCommand.get().getName(),event.getMessage().getAuthor().getID(),result.getOpcode(),result.getMessage());
LOGGER.debug("User {} attempted to run a command outside of its intended scope.",event.getMessage().getAuthor().getID());
DiscordInteractionsUtil.sendMessage(event.getMessage().getChannel(),"Cannot run this command outside of its intended scope. Valid scope is: "+targetCommand.get().getScope()+".");
return;
}
LOGGER.info("Accepted command {} for user #{}. OPCode: {}, Reason: {}",targetCommand.get().getName(),event.getMessage().getAuthor().getID(),result.getOpcode(),result.getMessage()!=null?result.getMessage():"N/A");