def METHOD_NAME(embed):
    """Checks to ensure that the embed is valid."""
    assert len(embed) <= 6000
    assert embed.title is None or len(embed.title) <= 256
    assert embed.description is None or len(embed.description) <= 4096
    assert embed.fields is None or len(embed.fields) <= 25
    for field in embed.fields:
        assert 0 < len(field.name) <= 256
        assert 0 < len(field.value) <= 1024
    if embed.footer:
        assert len(embed.footer.text) <= 2048
    if embed.author:
        assert len(embed.author.name) <= 256