KwPlayer.PartyNumber

Returns the id of a player if this player is in the party or raid.

Arguments

 * playerName
 * string - The name of the player.

Returns

 * partyid
 * string - partyId or raidId if the player is in the party. 0 if not in the party or raid.

Example
DEFAULT_CHAT_FRAME:AddMessage(kwPlayer.PartyNumber("Example"))