CustomGame.GetAIDifficulty(int slot)
Syntax
public Difficulty? GetAIDifficulty(
    int slot
)

Gets the difficulty of the AI in the input slot.