@since: BuddyPress 5.0.0 Added $type parameter.
Description
groups_is_user_invited()

Check whether a user has an outstanding invitation to a group.

Source: bp-groups/bp-groups-functions.php:1570