API UnitRace

Returns the race of the specified unit. raceName, raceFile, raceID = UnitRace(unit)

Arguments

 * unit : string - UnitId

Returns

 * raceName : string - Localized race name, suitable for use in user interfaces.
 * raceFile : string - Localization-independent race name, suitable for use as table keys.
 * raceID : number - RaceId. Localization-independent raceID.

Example
The following command prints your character's name and race to chat: /run print(UnitName("player").." is a "..UnitRace("player"))