From the wonderful RedGuides Wiki

Data about a class. Returns long name by default.

This Data Type is added by core MacroQuest.
class is used as a return type by these members:  [ Toggle ]

Page Member Description
fellowshipmember Class Member's class
item Class[#|name] Returns the #th long class name of the listed classes on an item.
LoginProfile Class The class short name of the current autologin profile, also access class type members.
NetBots Returns class of [Name]
raidmember Raid member's class (works without being in zone)
spawn Returns the class long name


Type Member Description
bool CanCast Can cast spells, including Bard
ClericType Cleric/Paladin
DruidType Druid/Ranger
HealerType Cleric/Druid/Shaman
MercType True if Mercenary
NecromancerType Necromancer/Shadow Knight
PetClass Any one of: Shaman, Necromancer, Mage, Beastlord
PureCaster True if character is a Cleric, Druid, Shaman, Necromancer, Wizard, Mage or Enchanter.
ShamanType Shaman/Beastlord
int ID The class's ID #
string Name The long name, e.g. "Ranger"
ShortName The short name, e.g. "RNG"

See also