This has been posted here before. Add this to your macro:

/script StaticPopup_Hide("PARTY_INVITE");