Yes, it is illegal to use Discord if you are under 13 as per Discord's Terms of service.