Skip to main content

Role

The Role type is an enum that stores the different roles in the game as string literals.

Data Type

The data type for Role is defined here and is reproduced below for convenience:

export const enum Role {
// Harmony Roles
Investigator = 'investigator',
Bodyguard = 'bodyguard',
Physician = 'physician',
Lookout = 'lookout',
Hacker = 'hacker',
Marshal = 'marshal',
// Discord Roles
Assassin = 'assassin',
Nullifier = 'nullifier',
Spy = 'spy',
Framer = 'framer',
// Neutral
Werewolf = 'werewolf',
Alchemist = 'alchemist',
}